static IMS_CB_Location_Dal() { maxPosition = new InventoryPositionModule(); using (var db = new Entities.TabelEntities.ORGModels()) { maxPosition.MaxP = db.IMS_CB_WZ_S.Max(n => n.P); maxPosition.MaxL = db.IMS_CB_WZ_S.Max(n => n.L); maxPosition.MaxC = db.IMS_CB_WZ_S.Max(n => n.C); } }
public LocationController(ILocation repoLocation , ILocationType repoLocationType , ILocationRelationship repoLocationRelationship , IContainer repoContainer) { this.dalLocation = repoLocation; this.dalLocationType = repoLocationType; this.dalLocationRelationship = repoLocationRelationship; this.dalContainer = repoContainer; maxPosition = dalLocation.GetMaxPosition(); }