2. DataBaseLayer Creation
select solution in solution explorer->right click ->add project->new->select class library->CMBusinessTyre.
Right Click CMBusinessTyre->add folder->CMDatabaseLayer
Right click CMDatabaseLayer -> add new item ADO.Net Entity data model file.<CMContext> as name.
ADO.Net Entity data model Wizard
Select EF Designer from Database
Select New connection, fill
1. Server name
2. Logon credentials
3. Select Database
4. Test connection
Select Yes. include info in connection string
Give connection string as u required. Eg. ContactManagerContext.
Select required objects (Table. SP, View)
If required change model name(optional)
Click finish.
check the config string in app config file.
Note: this connection string need to copied and pasted in WCF restful service web config.
select solution in solution explorer->right click ->add project->new->select class library->CMBusinessTyre.
Right Click CMBusinessTyre->add folder->CMDatabaseLayer
Right click CMDatabaseLayer -> add new item ADO.Net Entity data model file.<CMContext> as name.
ADO.Net Entity data model Wizard
Select EF Designer from Database
Select New connection, fill
1. Server name
2. Logon credentials
3. Select Database
4. Test connection
Select Yes. include info in connection string
Give connection string as u required. Eg. ContactManagerContext.
Select required objects (Table. SP, View)
If required change model name(optional)
Click finish.
check the config string in app config file.
Note: this connection string need to copied and pasted in WCF restful service web config.
Comments
Post a Comment