예제 #1
0
        public static IQuery CreateInsertQuery(Mapping.ColumnMapCollection columns, IDataMapper dataMapper, string target)
        {
            Dialect dialect = CreateDialect(dataMapper);

            return(new InsertQuery(dialect, columns, dataMapper.Command, target));
        }
예제 #2
0
        public static IQuery CreateUpdateQuery(Mapping.ColumnMapCollection columns, IDataMapper dataMapper, string target, string whereClause)
        {
            Dialect dialect = CreateDialect(dataMapper);

            return(new UpdateQuery(dialect, columns, dataMapper.Command, target, whereClause));
        }