示例#1
0
        public static int SetTableDescription(string dbName, string tableName, string description)
        {
            var checkResult = DalDbMap.CheckSystemTableDescript(dbName, tableName);
            var result      = DalDbMap.UpdateSystemDescription(dbName, tableName, null, description, checkResult);

            return(result ? DalDbMap.SetTableDescription(dbName, tableName, description) : 0);
        }
示例#2
0
        public static int UpdateDescription(int tableId, int fieldId, string description)
        {
            var fieldInfo   = DalDbMap.GetTableInfoById(tableId, fieldId);
            var checkResult = DalDbMap.CheckSystemColumnDescript(fieldInfo.Item1, fieldInfo.Item2, fieldInfo.Item3);
            var result      =
                DalDbMap.UpdateSystemDescription(fieldInfo.Item1, fieldInfo.Item2, fieldInfo.Item3, description, checkResult);

            return(result ? DalDbMap.UpdateDescription(tableId, fieldId, description) : 0);
        }