D
D
DeepBlack_313372019-12-16 11:30:13
css
DeepBlack_31337, 2019-12-16 11:30:13

How to create an ORM service in .NET Core?

The ASP .NET Framework has the ability to create a "database first" database model and use the DataService to quickly make an ORM service. Next, using Unchase oData, create classes in the client program for working with the database through the service.
How to do similar on ASP .NET Core?
Z.Y.
I have already installed EF on .NET Core, made a context and models from the database, connected the oData service, made a couple of controllers based on models, but there are more than 130 models (tables), how can I make one controller for the entire context? And how then to create on the basis of this classes in the client program? Maybe there is an easier way?
stackoverflow is silent on this matter) if necessary, I can provide the code.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Oleg, 2019-01-30
@Kennius

masonry

D
DeepBlack_31337, 2019-12-23
@DeepBlack_31337

In general, if we talk about the "classic" EF and OData solution, then it will be RESTier from Nuget packages, they promise to release for .NET Core 3 in early 2020.

R
Roman, 2019-12-16
@yarosroman

Look towards GraphQl

V
Vladimir Korotenko, 2019-12-16
@firedragon

Do it, what's the difficulty?
https://www.entityframeworktutorial.net/efcore/cre...
https://devblogs.microsoft.com/odata/asp-net-core-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question