Releases: zzzprojects/EntityFramework-Extensions
v3.11.23
v3.11.22
v3.11.21
v3.11.20
v3.11.19
v3.11.18
Download the library here
ADDED: Code for the future EF Core support
FIXED: DeleteFromQuery when InternalTransaction is specified
FIXED: UpdateFromQuery when InternalTransaction is specified
ctx.EntityInts.Where(x => x.ColumnInt < value).DeleteFromQuery(x =>
{
x.InternalTransaction = InternalTransactionType.ByOperation;
});PRO Version unlocked for the current month (April)
v3.11.17
Download the library here
ADDED: PostConfiguration event
ADDED: EntityType property
PostConfiguration
Raised when all configurations have been set (Column Mapping, Destination, BatchSize).
EntityType
Gets the entity type used in the bulk operations.
Example
In this example, we will force to insert a value into a column that's normally computed (value generated from the database) by adding the column to the mapping list.
dbContext.BulkInsert(list, operation => operation.PostConfiguration = bulkOperation =>
{
if (bulkOperation.EntityType == typeof(BankAccount))
{
bulkOperation.ColumnMappings.Add("CreatedDate");
}
});PRO Version unlocked for the current month (April)
v3.11.16
Download the library here
FIXED: Composite key with a different type.
For some relation, using a key with different type was causing an error due to mapping the type always to the first key found (Key1 = int)
public partial class CompositeKeyEntity
{
[Key]
[Column(Order = 0)]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Key1 { get; set; }
[Key]
[Column(Order = 1)]
[StringLength(10)]
public string Key2 { get; set; }
}PRO Version unlocked for the current month (April)