• Ctrl+Shift+B
  • Add Project
  • Creating Web api using asp. Net mvc 6 Introduction




    Download 2.23 Mb.
    bet2/16
    Sana20.03.2020
    Hajmi2.23 Mb.
    #8262
    1   2   3   4   5   6   7   8   9   ...   16

    Add a model class


    Model class is an object that represents the data in our application. In our case, the only model is Employee Model.

    Next, add Employee class. Right-click the project folder and select Add > New Item.

    In the Add New Item dialog, select the Class template. Name the class Employee and click OK.

    Replace the generated code with the below:



    Build this project by clicking Ctrl+Shift+B in order to create dll as this project will be used as a reference for the other projects and make sure there is no build error.

    Create Interface Project,

    In Solution Explorer, right click the src folder and select Add > New Project.



    In the Add Project dialog, select the Class Library template. Name the project Employees.Interface and click OK.



    Katalog: Blog -> wp-content -> uploads -> 2016

    Download 2.23 Mb.
    1   2   3   4   5   6   7   8   9   ...   16




    Download 2.23 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Creating Web api using asp. Net mvc 6 Introduction

    Download 2.23 Mb.