Ejemplo n.º 1
0
        public static string GetColumnName(this HbmId item)
        {
            HbmColumn column = item.Column();

            if (column == null)
            {
                return(item.column1);
            }
            return(column.name);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public static bool?IsUnique(this HbmId item)
 {
     return(item.Column().IsUnique());
 }
Ejemplo n.º 4
0
 public static bool?CanBeNull(this HbmId item)
 {
     return(item.Column().CanBeNull());
 }
Ejemplo n.º 5
0
 public static string GetUniqueIndex(this HbmId item)
 {
     return(item.Column().GetUniqueIndex());
 }
Ejemplo n.º 6
0
 public static string GetSqlType(this HbmId item)
 {
     return(item.Column().sqltype);
 }