/// <summary> /// Sets the dialect. /// </summary> /// <typeparam name="T">The dialect type to use.</typeparam> /// <returns>The fluent configuration itself.</returns> public FluentStorageConfiguration Dialect <T>() where T : Dialect { ConfigurationValues.Add("dialect", typeof(T).FullName); return(this); }
/// <summary> /// Sets the connection provider /// </summary> /// <typeparam name="T">The connection provider class to use.</typeparam> /// <returns>The fluent configuration itself.</returns> public FluentStorageConfiguration ConnectionProvider <T>() where T : IConnectionProvider { ConfigurationValues.Add("connection.provider", typeof(T).FullName); return(this); }
///<summary> /// Sets the driver for the configuration ///</summary> ///<typeparam name="T">The driver class</typeparam> ///<returns>The fluent configuration itself</returns> public FluentStorageConfiguration Driver <T>() where T : IDriver { ConfigurationValues.Add("connection.driver_class", typeof(T).FullName); return(this); }
///<summary> /// Sets the connection string per name ///</summary> ///<param name="connecctionStringName">The name of the connection string</param> ///<returns>The fluent configuration itself.</returns> public FluentStorageConfiguration ConnectionStringName(string connecctionStringName) { ConfigurationValues.Add("connection.connection_string_name", connecctionStringName); return(this); }
/// <summary> /// Sets the connection string /// </summary> /// <param name="connectionString">The connection string to use.</param> /// <returns>The fluent configuration itself.</returns> public FluentStorageConfiguration ConnectionString(string connectionString) { ConfigurationValues.Add("connection.connection_string", connectionString); return(this); }
/// <summary> /// The proxy factory to use. This value defaults to /// <see cref="ProxyFactoryFactory"/>. /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public FluentStorageConfiguration ProxiedBy <T>() where T : IProxyFactoryFactory { ConfigurationValues.Add("proxyfactory.factory_class", GetTypeName <T>()); return(this); }