コード例 #1
0
        public static void AddColumn <T>(this IDbCommand dbCmdm,
                                         Expression <Func <T, object> > field)
        {
            var modelDef = ModelDefinition <T> .Definition;
            var name     = OrmLiteConfig.DialectProvider.FieldName(field);
            var fieldDef = modelDef.FieldDefinitions.First(f => f.Name == name);

            dbCmdm.AddColumn(typeof(T), fieldDef);
        }