CRUD operations with Dapper made simple.
[NotMapped]
attribute as wellAfter two years Dommel 2.0 is finally released. It comes with a bunch of new features and bugfixes. There are some breaking changes as well. However, upgrading from 1.x shouldn't result in too much issues as most of the breaking changes revolve around the extensibility points.
[Table]
and [Column]
attribute support.[Ignore]
attribute support.GetPaged
/ GetPagesAsync
and SelectPaged
/ SelectPagedAsync
.like
-queries for strings and in
-queries for arrays using Contains
in Select
.From<T>
method which support building a query. This is an experimental feature. #111InsertAll
/ InsertAllAsync
method to insert a collection of entities.Project<Foo>(x => new { x.Bar, x.Baz, x.Qux });
. #85DommelMapper
partial class. E.g. ISqlBuilder
, IKeyPropertyResolver
, etc.ISqlBuilder
interface.
PropertyInfo keyProperty
has been removed from the BuildInsert
method.string BuildPaging(string? orderBy, int pageNumber, int pageSize)
method has been added to support paging.string QuoteIdentifier(string identifier)
has been added to support adding quotes around database identifies such as tables and columns.string LimitClause(int count)
method has been added to support creating limit clauses for paging purposes.IKeyPropertyResolver
interface has been changed to support non-generated primary keys and simplify support for multiple primary keys.KeyPropertyInfo
class has been renamed to ColumnPropertyInfo
and is now returned by both IPropertyResolver
and IKeyPropertyResolver
.Special thanks to the contributors for logging issues and proposing pull-requests!
PrefixParameter
in BuildMultiMapQuery
- #132Dommel.Json
with JSON support #134Count
methodIKeyPropertyResolver
and Resolvers.KeyProperty
.[Ignore]
attribute support #130EscapeCharacterStart
and EscapeCharacterEnd
settingsPrefixParameter
method to ISqlBuilder
- #92Select<Product>(p => p.Name.Contains("bike")
null
instances to collections when performing automatic multi-map@
to parameters in SqlExpression<T>
InsertAll
(and InsertAllAsync
) method to insert a collection of entitiesGet
methods with automatic multi mappingQuoteIdentifier
method to ISqlBuilder
which optionally adds quotes around identifiers such as column and table namesFirst beta release of Dommel v2