Work on C# EF 4. Want to find list max information
selector= entityBillax.BillTaxID
public static List<T> GetMaxRowIDForChild2<T>(T fromList, Expression<Func<T,T>> selector)
{
selector = fromList.Count + 1;
if (fromList.Count > 0)
{
selector = fromList.Max(x => x.BillTaxID) + 1;
}
else
{
selector = 1;
}
}
Above syntax not working ,Face problem on select parameter.IS it possible to write expression tree for calculate the max ,base on property.
If have any query please ask.Thank in advanced.