2

Does anyone know an alternative to Microsoft.Practices.EnterpriseLibrary.Data which has since been deprecated and now when I bring it in to VS2010 for the 1st time it wont even compile. Even if i keep the application an ASP.NET 2.0 Framework app, it still throws errors.

This is an old legacy application that I just inherited and I dont even quite know what the library is used for but its causing my app to critically fail.

logixologist
  • 3,694
  • 4
  • 28
  • 46
  • can you list few of the features you are looking for contained in that package? – Davide Piras Apr 10 '13 at 00:26
  • I just edited the question. I dont even know what its used for. – logixologist Apr 10 '13 at 00:27
  • why does not compile? don't you have the dll referenced locally? – Davide Piras Apr 10 '13 at 00:28
  • Here is Microsoft's official explanation of what it does: The Database class leverages the provider factory model from ADO.NET. A database instance holds a reference to a concrete DbProviderFactory object to which it forwards the creation of ADO.NET objects. – logixologist Apr 10 '13 at 00:28
  • @david, its not a dll. Its a system reference. – logixologist Apr 10 '13 at 00:28
  • 2
    no, it is not a default system namespace, that's why it is failing, you should download the correct version of the MS EnterpriseLibrary package containing that assembly and reference it from Visual Studio, deprecated or Obsolete ok but if you still have it and reference it, it should still work. Also look at this one: http://stackoverflow.com/questions/14413514/what-is-microsoft-practices-enterpriselibrary-data – Davide Piras Apr 10 '13 at 00:30
  • @DavidePiras can you put your last answer in as an answer instead of a comment so I can accept it? – logixologist Apr 10 '13 at 21:08

2 Answers2

4

You are looking for an object relational mapper and the list of options for .NET is pretty long

  • My orm of choice is ServiceStack
  • Entity Framework, is Microsoft's official entry
  • Dapper is a lightweight orm, which, I believe, was created for StackOverflow
  • NHibernate is a port of Java's Hibernate and is the grandaddy of code first ORMs
  • Massive is another lightweight orm developed by Rob Conery of subsonic fame

There are a ton more, these are the first ones that came to mind

Jason
  • 15,915
  • 3
  • 48
  • 72
1

Microsoft.Practices.EnterpriseLibrary.Data is not a default system namespace, that's why it is failing, you should download the correct version of the MS EnterpriseLibrary package containing that assembly and reference it from Visual Studio, deprecated or Obsolete ok but if you still have it and reference it, it should still work.

Also look at this one:

what is Microsoft.Practices.EnterpriseLibrary.Data

Community
  • 1
  • 1
Davide Piras
  • 43,984
  • 10
  • 98
  • 147