I have an object model like this:
public class MyObject{ public int Prop1{get;set;} public int Prop2{get;set;} }
I use this object in a
You could do this way:
select new MyObject() { Prop1 = prop1 ?? 0; Prop2 = prop2 ?? 0; };
But it is better to use nullables.