public bool Equals(SchemaAutoAction other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.value, value)); }
public bool Equals(SchemaAutoAction other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } return Equals(other.value, value); }
private static Configuration GetConfiguration(SchemaAutoAction automation) { //var dbLocation = AppDomain.CurrentDomain.BaseDirectory; var config = new Configuration(); config.DataBaseIntegration(x => { x.Dialect <MsSql2012Dialect>(); x.SchemaAction = automation; //x.ConnectionString = "Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=" + dbLocation + "\\AvenueEntrega.mdf;Initial Catalog=AvenueEntrega;Integrated Security=True"; x.ConnectionStringName = "DefaultConnection"; x.Driver <SqlClientDriver>(); x.ConnectionProvider <DriverConnectionProvider>(); x.LogFormattedSql = true; x.LogSqlInConsole = true; }); config.AddAssembly(Assembly.GetExecutingAssembly()); //config.Configure(); return(config); }