开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜