examples using Csla.Data.SqlClient #1720
Unanswered
chrisintampa
asked this question in
Questions
Replies: 1 comment
-
In modern .NET Core you probably shouldn't need things like the CSLA connection manager types. Instead you should rely on dependency injection of the connection into your data portal operation methods. In Then in your data portal operation method require the connect as an injected parameter. [Fetch]
private async Task FetchAsync(int id, [Inject] SqlConnection sql)
{
} This allows the .NET Core DI infrastructure to manage your connection. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
All - I'm creating a new application and we have decided to upgrade to the new version of the csla utilizing MVC. we have been using the .net framework version with webforms for years.
I'm running thru the project tracker app and I've gotten to the point where I am trying connecting to the database. it work fine with the EF, but I would like to avoid the use of the EF. I cant find an example using the Csla.Data.SqlClient.
I cant seem to figure out how to get a database connection - once I get a connection, i should be good to go.
any sample/instruction to just doing a Fetch would be great.
Beta Was this translation helpful? Give feedback.
All reactions