Hi all... I have queries about LINQ ..
I have one application and 3 databases -
1st database - for developers
2nd database - for testing team
3rd database - for users (production)..
In normal 3-tire architecture, if the database credentials changes, then we change the connection string in web.config file.
But, in LINQ, Once the .dbml file is included, it makes datacontextclass itself...
SO, in future, what to do so that only the connection string is changed and rest all code remains the same ??
Also - please guide on - how to use WCF Services with LINQ-to-SQL - i.e. all LINQ Queries in WCF Services so that the portal runs smoothly and faster in IIS Server.
Please guide !
Loading
Riddhi ValechaPosted Apr 28, 2016, 3:50 AM
name="BasicHttpBinding_Service1" />
-------
My Query is-
Localhost now runs perfectly..
But, once I publish the website and host in server (other machine - 1.1.1.1), then endpoint issue arises.
I want a solution such that -
1. endpoint address must be a specific URL
2. No need to change it on repeated basis. Once fixed in webconfig file, it must work everywhere.
I tried the following -
name="BasicHttpBinding_Service1" />
name="BasicHttpBinding_Service1" />
-------
but none worked...
Please guide
Riddhi ValechaPosted Apr 22, 2016, 6:16 AM
wcf1.ServiceReference1.Service1Client client = new Service1Client();
client.DoWork();
client.DoWorkAsync();
DoWorkAsync();
where as , in Service.cs file, I have written only one method -
public void DoWork()
{}
------------
Which one to use and why ??
PLease guide
Riddhi ValechaPosted Apr 11, 2016, 8:38 AM
Manas MohapatraPosted Apr 11, 2016, 3:21 AM