示例#1
0
        public override int Delete()
        {
            var    table = MetaBusiness.GetTableNameByObjClassId(ObjClsId);
            string sql   = string.Format("delete from  {0} where id = '{1}'", table, Id);

            return(DbQuery.New().ExecuteNoQuery(sql));
        }
示例#2
0
 protected virtual void SetObjClsId(string clsId)
 {
     MetaClassDefine = MetaBusiness.GetMetaClassDefine(clsId);
     InitProperties(MetaClassDefine.PropertyDefineList.Select(x => new KeyValuePair <string, object>(x.Name, x.DefaultValue)));
     ClsId = clsId;
 }