Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Dapper and Csla Helper Classes #946

Open
Chicagoan2016 opened this issue May 6, 2020 · 3 comments
Open

Dapper and Csla Helper Classes #946

Chicagoan2016 opened this issue May 6, 2020 · 3 comments

Comments

@Chicagoan2016
Copy link

Question
We have always (almost) used ADO.NET and stored procs for Data Access, we are looking into Entity framework Core and Dapper and Dapper looks lightweight and it appears, would require very little learning curve.
I know we have some great classes provided by Csla such as ConnectionManager and SafeReader (among others), we would hate to lose functionality provided out of the box by Csla. Could we use those classes with Dapper? or are they redundant?

Warm Regards

Version and Platform
CSLA version: 4.7.100
OS: Windows, Linux, iOS, Android, etc.
Platform: WinForms, WPF, ASP.NET Core, MVC, Xamarin, etc.

@danielmartind
Copy link

I have used the ConnectionManager with Dapper in the past, I think it is mainly extension methods on the db connection. I have read that Rocky is recommending to just use DI and inject the connection in place of ConnectionManager these days though.

SafeReader would be largely redundent as results are generally strongly typed and I have just mapped them to DTO's in a similar way that EF is used in project tracker.

@Batzangia
Copy link

Dapper is so cool micro ORM.

@angtianqiang
Copy link

I use petapoco

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants