-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In vm.Aspects.Model: * Fixed a bug in HiLoIdentityGenerator where the generated long ID-s would not go above int.MaxValue. * Made all repositpory tests to work with both HiLo and SQL identity providers. * Added new method IOrmSpecifics.GetEntitySetName. Implemented for EFRepositoryBase and for MapObjectsRepository.
- Loading branch information
Showing
29 changed files
with
615 additions
and
353 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
29 changes: 29 additions & 0 deletions
29
Aspects/Model/EFRepository/HiLoIdentity/HiLoIdentityGenerator.Metadata.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators; | ||
using vm.Aspects.Diagnostics; | ||
using vm.Aspects.Validation; | ||
|
||
namespace vm.Aspects.Model.EFRepository.HiLoIdentity | ||
{ | ||
abstract class HiLoIdentityGeneratorMetadata | ||
{ | ||
[Dump(0)] | ||
[StringLengthValidator(HiLoIdentityGenerator.EntitySetNameMaxLength)] | ||
[RegexValidator(RegularExpression.RexCSharpIdentifier)] | ||
public object EntitySetName { get; set; } | ||
|
||
[Dump(1)] | ||
[NonnegativeValidator] | ||
public object HighValue { get; set; } | ||
|
||
[Dump(2)] | ||
[NonnegativeValidator] | ||
public object LowValue { get; set; } | ||
|
||
[Dump(3)] | ||
[NonnegativeValidator] | ||
public object MaxLowValue { get; set; } | ||
|
||
[Dump(4)] | ||
public object HasIdentity { 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
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
Oops, something went wrong.