public static string GetColumnName(this HbmId item) { HbmColumn column = item.Column(); if (column == null) { return(item.column1); } return(column.name); }
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); }
public static bool?IsUnique(this HbmId item) { return(item.Column().IsUnique()); }
public static bool?CanBeNull(this HbmId item) { return(item.Column().CanBeNull()); }
public static string GetUniqueIndex(this HbmId item) { return(item.Column().GetUniqueIndex()); }
public static string GetSqlType(this HbmId item) { return(item.Column().sqltype); }