Пример #1
0
        public static string GetColumnName(this HbmId item)
        {
            HbmColumn column = item.Column();

            if (column == null)
            {
                return(item.column1);
            }
            return(column.name);
        }
Пример #2
0
        public static int?GetMaxLength(this HbmId item)
        {
            int?maxLength = item.length.ParseInt32();

            if (maxLength == null)
            {
                HbmColumn column = item.Column();
                maxLength = column.length.ParseInt32();
            }
            return(maxLength);
        }
Пример #3
0
 public static bool?IsUnique(this HbmId item)
 {
     return(item.Column().IsUnique());
 }
Пример #4
0
 public static bool?CanBeNull(this HbmId item)
 {
     return(item.Column().CanBeNull());
 }
Пример #5
0
 public static string GetUniqueIndex(this HbmId item)
 {
     return(item.Column().GetUniqueIndex());
 }
Пример #6
0
 public static string GetSqlType(this HbmId item)
 {
     return(item.Column().sqltype);
 }