|
11 | 11 | // Connection String Name: "TestDatabase" |
12 | 12 | // Connection String: "Data Source=(local);Initial Catalog=EfrpgTest;Integrated Security=True;Application Name=EntityFramework Reverse POCO Generator" |
13 | 13 | // ------------------------------------------------------------------------------------------------ |
14 | | -// Database Edition : Developer Edition (64-bit) |
15 | | -// Database Engine Edition: Enterprise |
| 14 | +// Database Edition : Developer Edition (64-bit) |
| 15 | +// Database Engine Edition : Enterprise |
| 16 | +// Database Version : 13.0.4001.0 |
16 | 17 |
|
17 | 18 | // <auto-generated> |
18 | 19 | // ReSharper disable ConvertPropertyToExpressionBody |
@@ -650,7 +651,7 @@ public class ColumnName |
650 | 651 | public int? SnakeCase { get; set; } // snake-case |
651 | 652 |
|
652 | 653 | [Column(@"default_test", Order = 8, TypeName = "varchar")] |
653 | | - [Required] |
| 654 | + [Required(AllowEmptyStrings = true)] |
654 | 655 | [MaxLength(20)] |
655 | 656 | [StringLength(20)] |
656 | 657 | [Display(Name = "Default test")] |
@@ -751,7 +752,7 @@ public class Stafford_Boo |
751 | 752 | public int Id { get; set; } // id (Primary key) |
752 | 753 |
|
753 | 754 | [Column(@"name", Order = 2, TypeName = "nchar")] |
754 | | - [Required] |
| 755 | + [Required(AllowEmptyStrings = true)] |
755 | 756 | [MaxLength(10)] |
756 | 757 | [StringLength(10)] |
757 | 758 | [Display(Name = "Name")] |
@@ -779,7 +780,7 @@ public class Stafford_ComputedColumn |
779 | 780 | public int Id { get; set; } // Id (Primary key) |
780 | 781 |
|
781 | 782 | [Column(@"MyColumn", Order = 2, TypeName = "varchar")] |
782 | | - [Required] |
| 783 | + [Required(AllowEmptyStrings = true)] |
783 | 784 | [MaxLength(10)] |
784 | 785 | [StringLength(10)] |
785 | 786 | [Display(Name = "My column")] |
@@ -808,7 +809,7 @@ public class Stafford_Foo |
808 | 809 | public int Id { get; set; } // id (Primary key) |
809 | 810 |
|
810 | 811 | [Column(@"name", Order = 2, TypeName = "nchar")] |
811 | | - [Required] |
| 812 | + [Required(AllowEmptyStrings = true)] |
812 | 813 | [MaxLength(10)] |
813 | 814 | [StringLength(10)] |
814 | 815 | [Display(Name = "Name")] |
@@ -868,7 +869,7 @@ public class Synonyms_Parent |
868 | 869 | public int ParentId { get; set; } // ParentId (Primary key) |
869 | 870 |
|
870 | 871 | [Column(@"ParentName", Order = 2, TypeName = "varchar")] |
871 | | - [Required] |
| 872 | + [Required(AllowEmptyStrings = true)] |
872 | 873 | [MaxLength(100)] |
873 | 874 | [StringLength(100)] |
874 | 875 | [Display(Name = "Parent name")] |
|
0 commit comments