Due to some issues with a leacy database system i started implemeting the following
Standard entity model
Manual entity classes that duplicate the model but add required features for the legacy db
the domain service has queries that query against the original em and then convert the data to the manual entity classes like this
everything works fine. Fills the Radgrid, allows paging, etc
but it fails when i click the column header with the following exception
Only initializers, entity members, and entity navigation properties are supported.
tried all kinds of things but wasnt able to get around this yet
Any ideas what i can do to fix this ?
thanks
Mike
Standard entity model
Manual entity classes that duplicate the model but add required features for the legacy db
the domain service has queries that query against the original em and then convert the data to the manual entity classes like this
IQueryable<myEntity> qry = ObjectContext.myEntity; |
var nqry = from q in qry |
select new MANUALENTITY() |
{ |
field1 = q.field1, |
field2 = q.field2 |
}; |
everything works fine. Fills the Radgrid, allows paging, etc
but it fails when i click the column header with the following exception
Only initializers, entity members, and entity navigation properties are supported.
tried all kinds of things but wasnt able to get around this yet
Any ideas what i can do to fix this ?
thanks
Mike