csharp NHibernate驱动程序Oracle

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp NHibernate驱动程序Oracle相关的知识,希望对你有一定的参考价值。

    public class OracleManagedDataClientConfiguration : PersistenceConfiguration<OracleManagedDataClientConfiguration, OracleConnectionStringBuilder>
    {
        protected OracleManagedDataClientConfiguration()
        {
            Driver<OracleManagedDataClientDriver>();
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="OracleManagedDataClientConfiguration"/> class using the
        /// Oracle Data Provider (Oracle.ManagedDataAccess) library specifying the Oracle 9i dialect. 
        /// The Oracle.ManagedDataAccess library must be available to the calling application/library. 
        /// </summary>
        public static OracleManagedDataClientConfiguration Oracle9
        {
            get { return new OracleManagedDataClientConfiguration().Dialect<Oracle9iDialect>(); }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="OracleManagedDataClientConfiguration"/> class using the
        /// Oracle Data Provider (Oracle.ManagedDataAccess) library specifying the Oracle 10g dialect. 
        /// The Oracle.ManagedDataAccess library must be available to the calling application/library. 
        /// </summary>
        public static OracleManagedDataClientConfiguration Oracle10
        {
            get { return new OracleManagedDataClientConfiguration().Dialect<Oracle10gDialect>(); }
        }
    }

以上是关于csharp NHibernate驱动程序Oracle的主要内容,如果未能解决你的问题,请参考以下文章

csharp 按sql #NHibernate排序

csharp 标准sql #NHibernate

csharp 按sql #NHibernate分组

csharp SqlFunction #NHibernate

csharp:Nhibernate Procedure with CreateSQLQuery

csharp 这个要点展示了如何使用NHibernate异步API