-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implements complex type handling. (#17) * Implements handling of renamed properties/columns (more likely in complex types). (#19) * Significant refactoring and cleanup. * Fully test-driven development, with coverage of all the newly supported variations. * Preparation for handling multiple RDBMSs by factoring out adding interface to db handling (#16) issue #16 fixes #17 fixes #19
- Loading branch information
Showing
14 changed files
with
540 additions
and
192 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace EFTests.Model | ||
{ | ||
/// <summary> | ||
/// Only findable via the complex type Geology | ||
/// </summary> | ||
public enum Eon | ||
{ | ||
Old, | ||
ReallyOld, | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace EFTests.Model | ||
{ | ||
public class Geology | ||
{ | ||
// no id to make this a complex type to be included in the Warren | ||
public string Soil { get; set; } | ||
public int Density { get; set; } | ||
public Eon? Eon { get; set; } | ||
|
||
[Column("PreviousEon")] // supress the "Geology_" prefix that you'd normally get | ||
public Eon? PreviousEon { get; set; } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace EFTests.Model | ||
{ | ||
public enum Pedigree | ||
{ | ||
Dubious, | ||
Pure, | ||
Inbred | ||
} | ||
} |
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
Oops, something went wrong.