Esempio n. 1
0
        internal string TableAttributeName(Type mType)
        {
            var tableName = string.Empty;

            tableName = AH.GetAttributePropVal <TableAttribute>(mType, a => a.Name);
            if (string.IsNullOrWhiteSpace(tableName))
            {
                throw new Exception("DB Entity 缺少 TableAttribute 指定的表名!");
            }
            return(tableName);
        }