예제 #1
0
        public T Load <T>(int id) where T : Attributable, new()
        {
            T o = new T
            {
                ObjectID = id
            };

            Savator.FillObject(o, this);


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

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