Beispiel #1
0
 public void Insert(SysOganize user)
 {
     using (MAction action = new MAction(tableName))
     {
         action.Data.LoadFrom(user);
         action.Insert();
     }
 }
Beispiel #2
0
 public void Update(SysOganize user)
 {
     using (MAction action = new MAction(tableName))
     {
         action.Data.LoadFrom(user);
         action.Update();
     }
 }
Beispiel #3
0
        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);
        }