Should I use generics to simplify my DAL?

前端 未结 3 1072
Happy的楠姐
Happy的楠姐 2021-01-24 12:33

I\'m new to NHibernate and not very good at C#, but I\'m learning. I have a DataProvider class which provides data for my application using NHibernate 3. It\'s stru

3条回答
  •  梦毁少年i
    2021-01-24 13:21

    The answer to your question is Absolutely Yes! This is what generics are meant for.

    You are in the right way.

    This argument is really too long to discuss here but you can find a lot of usefull info in this article:

    http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx

    It helps me a lot to create my generic nhibernate Dao

提交回复
热议问题