Exemplo n.º 1
0
        public virtual DbTypeNameCategory GetTypeNameCategory(string typeName)
        {
            if (typeName == null)
            {
                throw new ArgumentNullException(nameof(typeName));
            }

            typeName = typeName.ToLower();

            var attribute = DialectBase.GetOrCreateDialectAttribute(this.GetType());

            if (attribute.Categories.ContainsKey(typeName))
            {
                return(attribute.Categories[typeName]);
            }
            else
            {
                throw new DbException($"Could not get type name category for type '{typeName}'.");
            }
        }
Exemplo n.º 2
0
        protected Tuple <char, char>[] BuildIdentifierDelimiters()
        {
            var attribute = DialectBase.GetOrCreateDialectAttribute(this.GetType());

            return(attribute.IdentifierDelimiters);
        }