Take the 2-minute tour ×

If you are using Subsonic 3.0 and plan to use the SimpleRepository and POCOs...

How do you specify how to map from a POCO to a database table?

Thank you

share|improve this question

1 Answer 1

SimpleRepository automatically creates the table definitions based on the classes you define so there's no mapping to be done.

share|improve this answer
Well what if a particular column's name is not what Subsonic is expecting? How do you explicitly map it? –  Arash Sep 30 '09 at 1:15
For the most part, I follow the convention of: In the database it's like this: column_name_is_like_this And in my classes: ColumnNameIsLikeThis –  Arash Sep 30 '09 at 1:16
You should update your question with a specific example that isn't working as you expect. –  Runscope API Tools Sep 30 '09 at 14:37

Your Answer

