Skip to main content
0 votes
0 answers
50 views

System expansion with C# ASP.NET MVC

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
1 answer
106 views

"Could not find bind method for service" message when using code-first grpc for .net

When using the code-first method with protobuf-net.Grpc.AspNetCore, I see the following messages: [15:13:07 INF] [HTTP] Starting grpc server... [15:13:07 DBG] Could not find bind method for App....
sparkplug's user avatar
  • 1,366
0 votes
2 answers
130 views

EF Core stored / computed property query database

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
1 vote
1 answer
60 views

Unable to test code-first gRPC service using AddCodeFirstGrpcClient and WebApplicationFactory

I'm trying to take advantage of Protobuf-net's client factory method AddCodeFirstGrpcClient to create client in a testing context using WebApplicationFactory<TEntryPoint>. The issue is with the ...
Shimmy Weitzhandler's user avatar
0 votes
1 answer
42 views

How can I edit 2sxc entity structure, like add property, change property type etc. programmatically via C# code?

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
1 answer
134 views

Self relation in C# [duplicate]

I have a class called Person that has an attribute called friends from which is a list of type Person. Actually, I am going to create a many-to-many relationship between the Person class and itself. ...
Saber Safdari's user avatar
0 votes
0 answers
54 views

Different tool to generate codefirst migration. Time to clean up and refactor

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,937
0 votes
0 answers
362 views

C# gRPC code first API streaming from client

Need a little help. I am using code first approach to gRPC. Here is my service definition: [ServiceContract] public interface IFileStorageService { [OperationContract] Task<...
Branislav B.'s user avatar
-1 votes
1 answer
596 views

Code first gRPC client generation problem in ASP.NET

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
0 answers
64 views

Let EF generate custom IDs defined by content of specific fields of related table

To validate entries of a specific table, but mainly to reduce number of entries, I thought about let EF generate custom IDs for this specific table, as follows: class TrainingTimeDefinition { ...
Nick Knatterton's user avatar
0 votes
1 answer
170 views

Entity Framework Core code-first approach: database not being created automatically [duplicate]

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
0 answers
27 views

Givinig range in relationship for entity model in .NET Core

I have two models with the relationship as below (i.e 1 to 1-3). i.e model class A has at least one but not more than 3 instance/record of class B. How will I specify this relationship? public class ...
Rashedul.Rubel's user avatar
1 vote
1 answer
335 views

How can I use GRPC versioning in a code-first approach?

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,033
0 votes
0 answers
110 views

How to choose GUID as the primary key in SQL compact?

Hi I create C# windows form project and use "Microsoft® SQL Server® Compact 4.0 SP1" as database. I create my project with entity framework and code first approach. but I get some error. I ...
sadegh's user avatar
  • 207
0 votes
3 answers
107 views

How to create relation between one entity and others entities types using child id and child type in C# .net core EF?

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

15 30 50 per page
1
2 3 4 5
160