locked
How to make a DAL Layer RRS feed

  • Question

  • User809322603 posted

    Hi i want to make dal layer in my project please help

    Wednesday, November 28, 2012 1:23 AM

Answers

  • User3866881 posted

    Hi i want to make dal layer in my project please help

    Hello,

    A very simple way is that you can right click your project and choose to create a New Item of cs file, within the file you can write down codes to create a static class with static methods including CRUD ones. And then in these methods you can use LINQ-TO-SQL, LINQ-TO-ENTITYFRAMEWORK, general ADO.NET or other techonologies to interact with the layer db of SQL or other databases.

    And what's more, you can also use ObjectDatasource to bind CRUD methods.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 28, 2012 8:27 PM

All replies

  • User614805505 posted

    Hi,

    You may wanna try out this awesome tool. It can help to have more understanding on layering to your solution.

    http://layerguidance.codeplex.com/

    Wednesday, November 28, 2012 1:36 AM
  • User3866881 posted

    Hi i want to make dal layer in my project please help

    Hello,

    A very simple way is that you can right click your project and choose to create a New Item of cs file, within the file you can write down codes to create a static class with static methods including CRUD ones. And then in these methods you can use LINQ-TO-SQL, LINQ-TO-ENTITYFRAMEWORK, general ADO.NET or other techonologies to interact with the layer db of SQL or other databases.

    And what's more, you can also use ObjectDatasource to bind CRUD methods.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 28, 2012 8:27 PM