Multiple where conditions on entity causes read only property to be true

c# entity-framework-6 telerik-grid

Popular Answer

var lineItemList = (
    from e in _entity.LineItems
    where 
        e.EstID == Est.EstID
        && e.LineItemType == 1
    select new LineItemsModel{
        e.EstId,
        e.LineItemType
    }
).ToList();

// -- Insert -- \\
lineItemList.Add(new LineItemsModel(){
    EstId = 1,
    LineItemType = 2
});

radLaborLineItems.DataSource = lineItemList;
0
4/10/2020 5:29:06 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow