Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove PersistenceModel since it doesn't add any benefit at the moment
- Loading branch information
Showing
14 changed files
with
62 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 2 additions & 21 deletions
23
src/FluentSQL.Tests/Examples/Builders/ExampleModelBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
using FluentSQL.Databases; | ||
using FluentSQL.Tests.Databases.Builders; | ||
|
||
namespace FluentSQL.Tests.Examples.Builders | ||
namespace FluentSQL.Tests.Examples.Builders | ||
{ | ||
public class ExampleModelBuilder : TestDataBuilder<ExampleModel> | ||
{ | ||
private Database Database { get; set; } | ||
|
||
protected override void OnPreBuild() | ||
{ | ||
if (Database == null) | ||
{ | ||
WithDatabase(new DatabaseBuilder().Build()); | ||
} | ||
} | ||
|
||
protected override ExampleModel OnBuild() | ||
{ | ||
return new ExampleModel(Database); | ||
} | ||
|
||
public ExampleModelBuilder WithDatabase(Database database) | ||
{ | ||
Database = database; | ||
return this; | ||
return new ExampleModel(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
using FluentSQL.Databases; | ||
using FluentSQL.Modelling; | ||
|
||
namespace FluentSQL.Tests.Examples | ||
namespace FluentSQL.Tests.Examples | ||
{ | ||
public class ExampleModel : PersistenceModel | ||
public class ExampleModel | ||
{ | ||
public readonly Customers Customers = new Customers(); | ||
public readonly InvoiceLines InvoiceLines = new InvoiceLines(); | ||
|
||
public readonly Invoices Invoices = new Invoices(); | ||
|
||
public ExampleModel(Database database) | ||
: base(database) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.