I am writing unit test case for my Entity Framework Core SaveAsync method. try { // Here add business logic to insert record in to new database ...
I am writing unit test case for my Entity Framework Core SaveAsync method. try { // Here add business logic to insert record in to new database ...
I am using Mass Transit, Entity Framework, C# in my project. I have my consumer consuming an event and which insert data in to the table. I would lik ...
I am trying to build a website vulnerable to SQL injections (for educational purposes) with an ASP.NET API. To do that, I would like to call FromSql w ...
I'm trying to do an insert of a list of objects. These objects are formed by 2 separate sub-objects, linked by 0 to 1 relation. If I insert one objec ...
I tried to do the following: Product model: and: I keep getting the error: The specified field '_PictureUrls' of type 'string' cannot be us ...
I have a class called GatewayClaims and a class called GatewayItems. And yes, the project I'm working on is a gateway. I have several classes derived ...
I have a CQRS setup and I am trying to use domain events. After I receive a command for a new order, I am adding the newly created Order object to the ...
This my main class and in EDMX design i make new entity base type MainAcc, i delete some column that i want to move in EDMX design, so it become li ...
So after reading this article Working effectively with coordinates in Entity Framework the author advices to use NetTopologySuites Point class for sto ...
I have many tables that I need to query data to see if a certain parameter(isCorrect) is yes. This field is present in all the tables. I have built a ...
When I run the command update-database on package manager console, I have the code below that causes Impossible to load the file or the assembly 'Micr ...
I have such EntityTypeConfiguration class. I want to retrieve the column name: "secretID" by using the property DummyType.SecretId as such: ...
how to make bidirectional relationship to work in Entity Framework Core? Dotnet 6 Ef Core 6.0.13 DbContext class Error in Migration ...
I am encountering this error when trying to query data from cosmos: The partition key for entity type 'DataModel' is set to 'partitionKey', but th ...
I have a List of strings List<string> which I get from the following method var sentNotifications = Smtp.ProcessItems(queue, SmtpConfiguration); ...
After upgrading the EntityFramework NuGet packages (.Design, .SqlServer, and .Tools) to 7.0 and using scaffold-dbcontext in the PM console to re-gener ...
I am using a lambda query as below on a column with a Unique index in the table. For each request, approximately 8 -12 kb memory leak occurs. This me ...
i have table Asp_net_users which is many-to-many relation with table Clients. There are no mapped object in between them, it been auto -generated by E ...
I'm building an ASP.NET Web Api with simple CRUD operations and a Database which should be generated using EF Code First and Migrations. In terms of t ...
I have the following Setup How can I get access to the method which called .saveChangesAsync so I know where it was triggered from? I've checked ...