none
3 tier with Entity Framework in c#.net RRS feed

  • Question

  • hi

    who can give me pattern which use 3 tier with entity framework in c#.net

    e.nekoomanesh@hotmail.com

    thancks.

    Sunday, March 15, 2015 11:01 AM

Answers

All replies

  • Your code would look something like the code below.  You will have to add some references depending on the libraries you are using

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //add reference to PresentationFrameWork
    //add reference to PresentationCore
    //add reference to WindowsBase
    using System.Windows;
    
    
    
    namespace _3tierarchitecture
    {
        //user interface
        class Program
        {
            static void Main(string[] args)
            {
            }
        }
        class Business_Logic_layer
        {
        }
        //Data Access layer
        class Entity
        {
        }
    
    }
    


    jdweng

    Sunday, March 15, 2015 11:41 AM
  • You may want to use a form project

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    //add reference to PresentationFrameWork
    //add reference to PresentationCore
    //add reference to WindowsBase
    
    namespace _3tierarchitecture
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
        }
        class Business_Logic_layer
        {
        }
        //Data Access layer
        class Entity
        {
        }
    }
    


    jdweng

    Sunday, March 15, 2015 11:44 AM
  • Hello,

    Check this link below:

    N-Tier Entity Framework

    And this blog:

    Building N-Tier Apps with EF4

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, March 16, 2015 8:03 AM
    Moderator