You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class EntryA
{
[Key]
public int EntryAId { get; set; }
public string? EntryBId { get; set; }
[ForeignKey(nameof(EntryBId ))]
public virtual EntryB? EntryB{ get; set; }
}
public class EntryB
{
[Key]
public string EntryBId { get; set; }
}
and then trying to insert the following
EntryA entryA = new EntryA()
{
EntryAId = 1
}
List<EntryA> listOfEntryA = new List<EntryA>();
listOfEntryA.Add(entryA);
await context.BulkInsertOrUpdateAsync(listOfEntryA);
await context.BulkSaveChangesAsync();
will not throw any errors, but will not insert the entry.
If you populate EntryA.EntryBId with a valid id for a record in the EntryB table then it will get inserted.
making the same call with EFCore AddRangeAsync works fine
.
This is being inserted into a SQLite database.
The project is a .NET 9 MAUI app using EFCore 9 and Bulk Extensions 9.0.0-rc.1
The text was updated successfully, but these errors were encountered:
Given a model that looks like:
and then trying to insert the following
will not throw any errors, but will not insert the entry.
If you populate EntryA.EntryBId with a valid id for a record in the EntryB table then it will get inserted.
making the same call with EFCore AddRangeAsync works fine
.
This is being inserted into a SQLite database.
The project is a .NET 9 MAUI app using EFCore 9 and Bulk Extensions 9.0.0-rc.1
The text was updated successfully, but these errors were encountered: