FluentData使用Oracle

by kevin 8. 十月 2015 14:42 >

FlentData3.0.1 好像不支持,或者是我没找到使用的方法,3.0.1支持。

代码:

new DbContext().ConnectionStringName(@"default", new OracleProvider());

Web.Config配置

<add name="default" connectionString="data source=localhost/orali;persist security info=True;user id=System;password=System;" providerName="Oracle.ManagedDataAccess.Client" />

或者

<add name="default" connectionString="data source=localhost/oral;persist security info=True;user id=system;password=system;" providerName="System.Data.OracleClient" />

主要是连接字符串的providerName必填,根据自己安装的客户端填写。

分享到: 更多

打赏请我喝果汁咯

支付宝 微信

关于我

80后,单身,平庸的程序员。

喜欢看书,乐于交友,向往旅游。

遇建Kevin

FluentData交流群:477926269

Fluentdata