Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

Currently, I have an employee management system for a certain branch with many functions such as CRUD, export/import of excel files, etc. Now I want to expand it, bringing this system to other ...
Zaria's user avatar
  • 1
0 votes
2 answers
165 views

I'm trying to migrate my C# project from ASP.NET with EF to ASP.NET Core MVC and EF Core. I'm self taught and I'm the only person who works on this project so my project architecture and standards I'...
Max Burridge's user avatar
0 votes
1 answer
52 views

I need to update entities programmatically via C# code. I have some code already that creates IApp object of the target 2sxc app. From there I've been reading data via appObject.Data["...
Constantine Ketskalo's user avatar
0 votes
0 answers
59 views

I've inherited a non-complete clean solution from the point of view of CodeFist on a .NET 7 project. The scenario is the following: I had an old part of the Codebase that used EF Code first migration ...
advapi's user avatar
  • 3,967
-1 votes
1 answer
680 views

I have followed this microsoft tutorial to create gRPC service and client. Now i have problem with generating gRPC client class. To get data i use this method, but i doesn't seem right. I wish I could ...
Nazar Masukov's user avatar
0 votes
1 answer
202 views

I'm having an issue with Entity Framework Core while trying to use the code-first approach. I want the database to be automatically created when I run the code, but it's not happening. If I don't ...
Mert Atmaca's user avatar
1 vote
1 answer
384 views

As you can see in Versioning gRPC services, in GRPC we can use versioning by defining package in a proto file. How can I achieve the same functionality in a code-first approach?
sorosh_sabz's user avatar
  • 3,053
0 votes
3 answers
121 views

I want to create a direct relation between the Task entity and the child entities, to get with the task the corresponding child and when I get the child to get the corresponding task. I have an entity ...
Florin's user avatar
  • 41
0 votes
1 answer
25 views

I am new to .net core, here is the official repository from telerik for code first approach on schedule view : https://github.com/telerik/xaml-sdk/tree/master/ScheduleView/DatabaseEntityFramework if ...
traderset's user avatar
0 votes
1 answer
555 views

I'm using code first with Entity Framework Core for handling som addresses in an application. These addresses all have a HousingTypes property which is a collection of enums that can by any of the ...
einord's user avatar
  • 2,322
0 votes
0 answers
2k views

I got one big question. Below is the code I used to store string[] arrays in database, but I cannot Get them from database. my Model: public class TokenTransaction { [Key] public int Id { get; ...
azita's user avatar
  • 11
0 votes
1 answer
697 views

Let's say my database table Agents is the following, +------------+----------------------+--------------------+------------+-----------------+---------+ | AgentCode | AgentName | ...
Lakshitha Kanchana's user avatar
0 votes
2 answers
888 views

In EF Core with a code-first approach, by default column referencing another entity has an Id suffix - for example PersonId. Is it possible - and if so, how? - to change it to _id, so to person_id?
Rico's user avatar
  • 250
4 votes
2 answers
5k views

In order to setup the Testcontainer's MsSqlTestcontainer for testing, I copied the script emitted by dotnet ef migrations script and planted it in the unit-test's setup (actual code doesn't : void ...
Tar's user avatar
  • 9,125
1 vote
1 answer
568 views

I am using NestJs along with GraphQL with code-first approach as explained in the documentation. It works correctly till the time I have to use a custom field in an entity which is an array of objects....
Neha Alreja's user avatar
3 votes
2 answers
4k views

I'm creating my database using code-first and entity framework core, I have a 1:1 relationship, but in this relationship, I have a navigation property in both entities, this is my first entity: public ...
Andres Guillen Hernandez's user avatar
0 votes
1 answer
76 views

I don't know how to add two foreign key in the following scenario: I have two tables, one exists in the database yet (table Market), and I have to create a new table (MarketBranch). Table Market: ...
user18363545's user avatar
3 votes
1 answer
82 views

I have a relational database with more than 50 tables. They have more than one type of relationship, one to one, more than one. Will code first or database first be more effective in the new MVC ...
user avatar
0 votes
1 answer
47 views

I want to add two properties from the city model: after migration this error shows up: Unable to determine the relationship represented by navigation 'City.Orders' of type 'ICollection'. Either ...
Hamza abu-othman's user avatar
0 votes
1 answer
1k views

I am using Postgresql with code-first approach in my Node.JS project. Some of the tables were already there in the inherited code. There is a table called user_games storing the information about ...
Sandeep Parashar's user avatar
0 votes
1 answer
312 views

Problematic code (Present in Core.run() below) user.UserWordRequests.Add( new UserWordRequest { Date = DateTime.Now, Word = word } ); Decription of problem Database doesn'...
Dani's user avatar
  • 2,086
0 votes
0 answers
32 views

Maybe someone can help me with my problem: Problem I am working with ASP.NET MVC and have created a simple website with a database behind it. In this database I have different tables, but the ID of ...
jommil's user avatar
  • 21
0 votes
0 answers
114 views

I tried to create data by using code first to finish my OOP assignment. However, when I created connections among class, I encountered a problem: System.ArgumentOutOfRangeException: 'Index was out of ...
Văn Thuận Nguyễn's user avatar
2 votes
2 answers
3k views

I am currently working on a small project with code-first: I have to create a movie database and as usual each movie can have more than one genre (m:n). Since genres are constant, I decided to create ...
user avatar
0 votes
0 answers
47 views

I using EF code-first approach for tow databases engine (Oracle and MySQL). but I have problem when declare property with decimal type then I cant apply database migration in oracle database because ...
Raed Alsaleh's user avatar
  • 1,621

1
2 3 4 5
48