예제 #1
0
        public virtual string Sequence(string modelName, string fieldName, string sequence)
        {
            //TODO used to return Quote(sequence)
            if (!sequence.IsNullOrEmpty())
            {
                return(sequence);
            }
            var seqName = NamingStrategy.GetSequenceName(modelName, fieldName);

            return(seqName);
        }
예제 #2
0
 private string Sequence(string modelName, string fieldName, string sequence)
 {
     return(sequence.IsNullOrEmpty()
         ? Quote(NamingStrategy.GetSequenceName(modelName, fieldName))
         : Quote(sequence));
 }