Esempio n. 1
0
        public T Load <T>(int id) where T : Attributable, new()
        {
            T o = new T
            {
                ObjectID = id
            };

            Savator.FillObject(o, this);


            return(o);
        }
Esempio n. 2
0
        public string GetQuery <T>() where T : Attributable, new()
        {
            string query = Savator.GetSelectString(new T(), false, false);

            return(query);
        }
Esempio n. 3
0
 public void Delete <T>(T obj) where T : Attributable, new()
 {
     Savator.DeleteObject(obj, this);
 }
Esempio n. 4
0
 public List <T> Load <T>() where T : Attributable, new()
 {
     return(Savator.FillObjectList(new T(), this));
 }
Esempio n. 5
0
 public List <T> LoadByQuery <T>(string query) where T : Attributable, new()
 {
     return(Savator.FillObjectList <T>(query, this));
 }
Esempio n. 6
0
 public List <T> LoadByWhere <T>(string where) where T : Attributable, new()
 {
     return(Savator.FillObjectList(new T(), where, this));
 }
Esempio n. 7
0
 public DataTable GetDataTable <T>(string where) where T : Attributable, new()
 {
     return(Savator.GetDataTable(new T(), where, this));
 }
Esempio n. 8
0
 public void SaveChanges <T>(T obj) where T : Attributable, new()
 {
     Savator.SaveObject(obj, this);
 }
Esempio n. 9
0
 public void SaveChanges <T>(IEnumerable <T> list) where T : Attributable, new()
 {
     Savator.SaveObjectList(list.ToList(), this);
 }