locked
Enterprise Library RRS feed

  • Question

  • User52625461 posted

    Hi All,


    What is enterprise library and how to implement it?

    Monday, November 22, 2010 1:07 PM

Answers

  • User1875347183 posted

    Enterprise Library is library from Microsoft Corp.

    In that library there are various block for user such as database connection,encryption,decryption.cryptography

    we can modify those blocks as per our need. u can connect to any number of databases using EL.

    is very useful n hady to use that library.

    if you want that libraries visit

    http://msdn.microsoft.com/en-us/library/ff632023.aspx

    u will get all details from this link


    Kiran Ghadge

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 26, 2010 1:57 AM

All replies

  • User384031199 posted

    Hi,

    The Microsoft Enterprise Library is a set of tools and programming libraries for the Microsoft .NET Framework. It provides an API to facilitate best practices in core areas of programming including data access, security, logging, exception handling and others.

    Enterprise Library is provided as pluggable binaries and source code, which can be freely used and customized by developers for their own purposes.

    You can find many samples/tutorials on Enterprise Library in the following link.

    http://www.pnpguidance.net/category/EnterpriseLibrary.aspx

    Hope this helps.

     

     

    Monday, November 22, 2010 11:25 PM
  • User52625461 posted

    Hi All,


    I didnt still understand what is enterprise library and why it should be used.


    Can anyone explain any simple ways


    Tuesday, November 23, 2010 11:25 AM
  • User712082397 posted

    When you have to access database from your code. What do you typically do - Create ADO Connection, set connection string and then open connection. When you have  to query, you have to follow another series of steps. Correct?

    Now,  EL provides a framework that cuts this task for you. You just have to use EL and it will open and do most of the stuff (mentioned above) that you do for database. All you have to focus on is the writing SQL queries and whatever is crux of the project.

    Now this is just an example wherein you can utilize EL for database operations.

    EL does much more than just that.

    From MSDN:

    The Microsoft Enterprise Library is a collection of reusable software components (application blocks) designed to assist software developers with common enterprise development cross-cutting concerns (such as logging, validation, data access, exception handling, and many others).

    So if you have to do look for logging in your application, you can use EL.

    If you have to provide validation, data access or a standardized exception handling (provides many options like files, emails,event logs etc) then you can look at EL.

    http://msdn.microsoft.com/en-us/library/ff648951.aspx

    Tuesday, November 23, 2010 2:13 PM
  • User52625461 posted

    Can we use the same EL for multiple applications? If so, each database will have different connection string, tables, ado connection etc? Then how can we use the same EL in different applications (Concerning only database activities).

     If we can implement Create ADO Connection, set connection string and then open connection in one particular Class and access through it then, how EL exactly works here.


    Wednesday, November 24, 2010 12:55 AM
  • User712082397 posted

    Can we use the same EL for multiple applications?
     

    Yes, you can. All you have to do is to download and install EL. Once that is done, just add a reference and you are all set.

    If so, each database will have different connection string, tables, ado connection etc?

    Yes, each database can have its own independent setting. This is done through configuration settings (web.config/app/config) which you can do manually or you can use EL configuration tool.

    Then how can we use the same EL in different applications (Concerning only database activities).

    Each application will have its own configuration file.

    If we can implement Create ADO Connection, set connection string and then open connection in one particular Class and access through it then, how EL exactly works here.

    You can write your own framework or leverage what EL already provides. It is a reusable component that has been written and tested by experts in Avanade and Microsoft. You can surely rely on this. If you really want to know what is beneath it, then you can look at the source code too - its shipped with EL.

    Last but not the least, EL is much more than just a database component. It provides a framework for validation, exception handling, logging etc.

    I strongly recommend that you read the documentation to get familiar to it.

    Wednesday, November 24, 2010 7:07 AM
  • User52625461 posted

    Is that means we will create .DLL file and use it through out multiple applications as and when required?

    So as per my perception EL is basically used to cut down the basic and common activities to be written again and again. If i am wrong please correct me



    Thursday, November 25, 2010 1:28 AM
  • User712082397 posted

    EL is already compiled and shipped in DLL format. You just have to include it in reference and get on with it.

    And, yes you are correct. It provides a uniform out of the box way of doing things.

    Thursday, November 25, 2010 10:15 AM
  • User52625461 posted

    Ok,  understood that EL is already in DLL format and we need to add the reference through VS2008


    But whatever the business logic we will write in the Data Access, exception handling, logging etc can i make a DLL file for it and use it through out the applications?




    Friday, November 26, 2010 1:50 AM
  • User1875347183 posted

    Enterprise Library is library from Microsoft Corp.

    In that library there are various block for user such as database connection,encryption,decryption.cryptography

    we can modify those blocks as per our need. u can connect to any number of databases using EL.

    is very useful n hady to use that library.

    if you want that libraries visit

    http://msdn.microsoft.com/en-us/library/ff632023.aspx

    u will get all details from this link


    Kiran Ghadge

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 26, 2010 1:57 AM
  • User712082397 posted


    But whatever the business logic we will write in the Data Access, exception handling, logging etc can i make a DLL file for it and use it through out the applications?

    Your code for database access, exception handling etc.  is separate from EL.You can write your code (for database access etc) to utilize EL and cut down on mundane tasks.

    If you want, you can bundle your code (in a DLL) and reuse it as many times and in as many applications as you want.

    Friday, November 26, 2010 3:09 PM