Some suggestions on which .NET ORM to look at learning

前端 未结 9 948
陌清茗
陌清茗 2020-12-10 06:34

I am a little ashamed to say that I have never used an ORM; as you may recall most of my career experience is hacking around with Classic ASP and the little .NET I do tends

9条回答
  •  情歌与酒
    2020-12-10 07:31

    Checkout XmlDataMapper a simple free ORM (LGPL Licence) which leaves a low memory footprint compared to the other giants.
    The sample project provided should be good enough to get started.

    To integrate XmlDataMapper all you need to do is 4 little steps

    1. Create a Business Entity / DTO for the tables
    2. Create an XML File with the mapping information between the table and the DTO.
    3. Specify the DTO and xml file in the configuration.
    4. Just call the DTOConverter.Convert(dataReader) and other such methods to convert your database record to DTO / Business Entity

提交回复
热议问题