views:

13

answers:

0

I m applying domain driven design in my existing application using generic repository pattern in Linq2SQL,For this i m having an abstract entity class with common properties to be inherited by my other object tables,i m using structure Map for Dependency Injection.For saving and mapping my object tables to database tables i m using System.Data.Linq.DataContext class in my Repository class(having all functionalities like insert,getAll,getById etc)...but i m unable to map my object-tables with database table i m getting same exception whenever i try to insert data in database the exception is...."The type 'Model.X' is not mapped as a Table".
Can any one please guide me how to properly implement domain driven design in linq2sql using generic repository pattern with structure map...any help is appreciated...