Giter Club home page Giter Club logo

amg262 / assign07-midterm Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 21 KB

In this assignment, you will add a new controller (Customer) to the Northwind application. You will add a controller method (Register) to the Customer controller which will return a view when requested (/Customer/Register). The view will display a form designed to add customer data to the database. You will need to add a new Model to the application (Customer). Use the attached ERD to help you design the new class. When creating your class, use data annotations to require the CompanyName field. Update the derived context adding a DBSet for Customers. Use data migrations to ensure that your database and model are in sync. Once the new table has been added to the database, design your form to add CompanyName (Do not try to insert all fields right away - more prone to mistakes). Modify the derived context - create a method AddCustomer to save a customer to the database. You will need to create a controller method in the Customer controller to respond to POST requests for Customer/Register. Use custom validation to ensure that company names are unique. Once you can save a customer in the database using CompanyName, complete the Register form to include all database fields. Update the Navbar to reflect the changes. Extra Credit: Display all customers after the new customer is successfully added.

C# 62.18% HTML 32.45% CSS 3.59% JavaScript 1.78%

assign07-midterm's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.