public T First(DBSelect select) { List <T> _list = ToList(select); if (_list.Count > 0) { return(_list[0]); } return(null); }
public List <T> ToList(DBSelect select) { __select = select; Context.StartProcess(); List <T> _list = new List <T>(); string _initialQuery = InitialQuery(); List <ClassProxy> _initials = Load(_initialQuery); foreach (ClassProxy _proxy in _initials) { _list.Add((T)_proxy.Entity); } // procède au chargement des membres objets ou listes d'objets. Include(_initials); Context.UpdateEntitiesValues(); Context.EndProcess(); return(_list); }
public DBOnList Contains(DBSelect select) { Select = select; return(this); }