开发者

how to make Oracke & SQL Database connection with WCF

I am developing WCF service, and I want to make a database connection with oracle and sql in service. Ple开发者_开发知识库ase tell me how will do this.


There is more than one way to do that.

I'd highly suggest checking out LINQ-to-Entities.

  • TUTORIAL: http://naspinski.net/post/Getting-started-with-Linq-To-Entities.aspx

There is also LINQ-to-SQL

  • Blah... I'm not going to link to a tutorial because LINQ-to-Entities is better IMO.

Or, of course, the old-school method, using OracleClient:

  • DOCS: http://msdn.microsoft.com/en-us/library/system.data.oracleclient.oracleconnection.aspx
  • SAMPLE: http://msdn.microsoft.com/en-us/library/dw70f090%28v=vs.80%29.aspx
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜