Mapping interface instead of class to Database Table
Is this possible? how?
As far as you know to mapping a class to db table we should be use TableAttribute(Name="tableName")
attribute开发者_开发技巧, so we can't use attributes on interfaces. If I don't use this attribute:
"The type 'interfaceName' is not mapped as a Table."
showed.
This is not possible.
Refer to TableAttribute Class on MSDN.
TableAttribute - Designates a class as an entity class that is associated with a database table.
精彩评论