Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8893483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:15:33+00:00 2026-06-14T23:15:33+00:00

I will be building an application but I am not sure about what framework

  • 0

I will be building an application but I am not sure about what framework to use. At places where I have worked, they have used Ntiers with codesmith, nettiers being free but not codesmith. I found out about the Entity Framework but I have also read that the way to use it would be by using something called a “Repository Pattern” but there is a lot of doubts about using this. I do not have a big budget and its only myself, cant afford an expensive tool that would automatically create my classes with update, delete, create capabilities and leaving some code for me to implement. So I am not sure what way to go, should I go entity framework (is this the only one free?), or is there out there something else i could use, maybe not so expensive but reliable.

I would really appreciate a good advise on this as I expect, eventually this application will grow and grow and would like to be easy to maintain.

PS: I would go with entity framework and the repository pattern if that would be like my best choice.

Using C#, Asp.net and MSSQL 2008.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:15:34+00:00Added an answer on June 14, 2026 at 11:15 pm

    Entity Framework with code first and automatic migrations is one of the easiest ORM’s you can use. It’s flexible, well supported in the Microsoft stack, and with code first, one of the fastest ways of developing your database.

    Using Entity Framework code first, you define your data models as just normal C# classes. This will correspond to the Product table:

    public Product {
    
       public int Id { get; set; }
       public string Name { get; set; }
    }
    

    Create a database context.

    public MyDbContext : DbContext {
    
        public DbSet<Product> Products { get; set; }
    }
    

    Add the connection string to Web.config, and run the commands in the package manager console:

    >Enable-Migrations –EnableAutomaticMigrations
    >Update-Database
    

    And you now have a functional database with the Products table. When you make changes to your classes, just run Update-Database again, and it’ll migrate the schema for you.

    To add a new product:

    using (var db = new MyDbContex()
    {
        Product product = new Product() { Id = 1, Name = "Tablet" };
    
        db.Products.Add(product);
    
        db.SaveChanges();
    }
    

    Querying your data becomes as easy as:

    using (var db = new MyDbContex()
    {
        // get product with id == 1
        Product product = db.Products.Single(p => p.Id == 1);
    }
    

    As for the repository pattern, it’s just a design pattern. There’s a lot of different variations of the repository pattern, but it’s really about separating your data stores from your data access layer. This makes unit testing easier, without having to rely on an external database being present.

    Edit from your comment: There’s a couple ways of using EF and stored procedures. See Does Entity Framework Code First support stored procedures? and Using Stored Procedure to Insert Data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure if this is a bad way of building an application but
I am building an application that will have a model that belongs_to another model
If I'm building an application that will have over 30 models, and I want
I’m building an application where different users will have different menu items available to
I'm building an application that will have a user base, and I'm at the
I am about to start building an app that will be used across all
I'm building application on Google AppEngine with Java (GAE/J) and all my data will
I'm building an application which will be able to send emails at any specific
I am building a web application that will need to allow users to save
I'm building a WPF application that will be run on laptop computers mounted in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.