Пример #1
0
        /// <summary>
        /// 删除一个属性
        /// </summary>
        /// <param name="propertyId"></param>
        public void DeleteProperty(int propertyId)
        {
            DBExtend helper = dbHelper;

            Delete(propertyId);
            helper.Delete <PropertyValue>(b => b.PropertyId == propertyId);
            nameCache.Remove(propertyId);
        }
Пример #2
0
 public void CleanData()
 {
     DBExtend.Delete <DataBase>(b => b.Id > 0);
     DBExtend.Delete <Table>(b => b.Id > 0);
     DBExtend.Delete <TablePart>(b => b.Id > 0);
 }