@Michael Cohen Thanks for the links although the Intersystems documentation linked appears to reference .NET 4 Entity Framework rather than .NET Core EF. They are two different platforms and is most likely why you could not find ConfigureServices in the Intersystems docs. For a Micosoft SQL Server, your ConfigureServices method could have
but I haven't seen any examples in Caché! Perhaps there is a development opportuntiy to write a NuGet package? Here's a Microsoft link to other popular database providers supported within .NET Core.
PS. If you use RESTful HTTP methods to talk to the database then you don't need a database provider as the data can be returned as part of the HTTP Response.
It's a pity that this does not exists yet, it would be very interesting to have an Intersystems EF Core Provider.
At least having support for Scaffold-DbContext and generating the Context and Entities automatically out of an existing cache database would be very nice.
interested in this as well. Thanks
@Michael Cohen Thanks for the links although the Intersystems documentation linked appears to reference .NET 4 Entity Framework rather than .NET Core EF. They are two different platforms and is most likely why you could not find ConfigureServices in the Intersystems docs. For a Micosoft SQL Server, your ConfigureServices method could have
services.AddDbContext<MyMSDBContext>(cfg =>
{
cfg.UseSqlServer(_config.GetConnectionString("MyConnectionString"));
});
but I haven't seen any examples in Caché! Perhaps there is a development opportuntiy to write a NuGet package? Here's a Microsoft link to other popular database providers supported within .NET Core.
PS. If you use RESTful HTTP methods to talk to the database then you don't need a database provider as the data can be returned as part of the HTTP Response.
I looked https://docs.microsoft.com/en-us/ef/core/providers/ but didn't find Caché in the list of common database providers used with .NET Core EF.
I haven't tried this, but Microsoft's DbContext doc here:
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY...
seems to match our example down this page in our docs here:
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY...
I don't find ConfigureServices in our docs, but Microsoft indicates that it is optional:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/startup?view=a...
Sorry for lack of detail.
It's a pity that this does not exists yet, it would be very interesting to have an Intersystems EF Core Provider.
At least having support for Scaffold-DbContext and generating the Context and Entities automatically out of an existing cache database would be very nice.
Is there any plan to support it?
Cheers!
You also can look for the answers in Microsoft entity framework page
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue