Esempio n. 1
0
        public virtual string GetIndexName(ObjectName tableName)
        {
            int maxLength = MaxNameLength();

            return(StringHashEncoder.ChopHash("IX_{0}_{1}".FormatWith(tableName.Name, ColumnSignature()), maxLength) + WhereSignature());
        }
Esempio n. 2
0
        public override string GetIndexName(ObjectName tableName)
        {
            var maxSize = MaxNameLength();

            return(StringHashEncoder.ChopHash("UIX_{0}_{1}".FormatWith(tableName.Name, ColumnSignature()), maxSize) + WhereSignature());
        }