Click here to Skip to main content
15,904,287 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Main Table

Company Details

1)CompanyDetailsID PK Uniqueidentifier
2)Company Name
3)ManagementID Foreign Key
4) Noof Partners

AddressType

1)AddressTypeID PK Uniqueidentifier
2)AddressTypeName
3)CompanyDetailsID Foreign Key

ContactPerson

1)ContactpersonID PK Uniqueidentifier
2)ContactPersonName
3)DepartmentID Foreign Key
4)Phone NO
5)Email
6)JobRole
7)CompanyDetailsID Foreign Key



Tax Details
1)TaxDetails ID PK Uniqueidentifier
2)TinNo
3)CST No
4)Service Tax No
5)Excise Reg NO
6)Pan NO
7)Cin No
8)CompanyDetailsID Foreign Key


Sub Table

Management
1) Management
2)ManagementID PK Uniqueidentifier



AddressTable
1)AddressID PK Uniqueidentifier
2)AddressTypeID Foreign Key
3) Street
4)Location
5)Area
6)CountryID
7)StateID
8)CityID

City
1)CityId PK Uniqueidentifier
2)City
3)StateId Fk Uniqueidentifier

State
1)StateId PK Uniqueidentifier
2)State

City
1)CityId PK Uniqueidentifier
2)City

Department
1)DepartmentIDPK Uniqueidentifier
2)DepartmentName


Sub table Management ,Department ,City, State ,Country all are dropdown except Address . I gave values for these tables while Creating Database

Address Type (Main Table is 3 radio Button )
when I Connect this DB with MVC and Cretaed the EDMX File and Cretae one Controller For Insert Edit Delete action .. But Its automatically creating Each form For each table.. I want to Create single Form
and if i click the save Button it will save the datas in that particular table.. i donno What is the data type For Dropdown list which has to be give in model..

Now please any one tell me how to create single form for this table with clear explanation.... ...

How to do this Using MVC 4 and I request you to check My Db I normalized the DB it is Correct or not and Give me suggestion ..

Thanks..
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900