Esempio n. 1
0
        public TypeMapping GetTypeMapping(string columnType)
        {
            var tm = TypeMappings.FirstOrDefault(t => t.DataType.Equals(columnType, StringComparison.OrdinalIgnoreCase));

            if (tm == null)
            {
                throw new Exception("类型没有对应的转换" + columnType);
            }
            return(tm);
        }