public void Insert(SysOganize user) { using (MAction action = new MAction(tableName)) { action.Data.LoadFrom(user); action.Insert(); } }
public void Update(SysOganize user) { using (MAction action = new MAction(tableName)) { action.Data.LoadFrom(user); action.Update(); } }
public SysOganize GetObjectByCondition(string where) { SysOganize sysOganize = new SysOganize(); using (MAction action = new MAction(tableName)) { if (action.Fill(where)) { sysOganize = action.Data.ToEntity <SysOganize>(); } } return(sysOganize); }