Example #1
0
        public static int DeleteByPrimaryKeyArray <T>(long[] idArray) where T : CAS.Entity.BaseDAModels.BaseTO, new()
        {
            int         result;
            BaseDAO <T> da        = new BaseDAO <T>(GetConnectionName <T>());
            string      tableName = GetEntityTable <T>();

            if (!string.IsNullOrEmpty(tableName))
            {
                da.SetTableName(tableName);
            }
            result = da.DeleteByPKArray(idArray);
            return(result);
        }