tags:

views:

14

answers:

1

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.

+1  A: 

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.

Leniel Macaferi