简体   繁体   中英

Looking for a .NET data access layer

I am looking for a data access layer for ado.net. I am not interested in linq, EF, NHibernate or any other ORM. Currently, I am using the data access layer from umbraco. The DAL is very good but they stopped developing it so i am looking for a different one. Does anyone know where I can find a list of DALs that I can test?

If you want a DAL, but not an ORM, why not just use ADO.NET directly?

There is no real reason to add an extra layer on top of ADO.NET, unless you want to have the flexibility and ease of development garnered by using an ORM...

I know you said you didn't want to use LINQ to SQL because it is an ORM, but you don't have to use it like an ORM. You can also execute raw SQL via ExecuteQuery and have it automatically fill the results into properties of objects for you. You can specify the desired type of the result object as a type parameter. It's not full-blown ORM - it gives you control over what SQL you send, but it saves having to iterate over data readers.

I have found a much better way to do this. I am going to use microsofts Data Access Application Blocks. This way I don't need to close the connection or the reader every single time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM