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)); }
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; }