I have entity called Customer and it has three properties:
public class Customer {
public virtual Guid CompanyId;
public virtual long Id;
public virtual string Name;
}
I have also entity called Splitting and it has three properties:
public class Splitting {
public virtual long CustomerId;
public virtual long Id;
public virtual string Name;
}
Now I need to write a method that gets companyId and customerId. The method should return list of splitting that relates to the specific customerId in the companyId.
Something like this:
public IList<Splitting> get(Guid companyId, long customrId) {
var res=from s in Splitting
from c in Customer
...... how to continue?
return res.ToList();
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…