/// <summary> /// Create a new DatabaseQuery with a given seed DatabaseQueryString /// </summary> /// <param name="query"></param> /// <returns></returns> public static DatabaseQuery Create(DatabaseQueryString query, string connectionString) { Contract.Requires(null != query); Contract.Requires(!string.IsNullOrWhiteSpace(connectionString)); Contract.Ensures(Contract.Result<DatabaseQuery>() != null); return new DatabaseQuery() { ConnectionString = connectionString, QueryString = query }; }
public bool Equals(DatabaseQueryString value) { return Value == value.Value; }
/// <summary> /// Create a new DatabaseQuery with a given seed DatabaseQueryString /// </summary> /// <param name="query"></param> /// <returns></returns> public static DatabaseQuery Create(DatabaseQueryString query) { Contract.Requires(null != query); Contract.Ensures(Contract.Result<DatabaseQuery>() != null); return new DatabaseQuery() { ConnectionString = DefaultConnectionString, QueryString = query }; }