File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -91,26 +91,26 @@ protected override void BuildModel(ModelBuilder modelBuilder)
91
91
92
92
modelBuilder . Entity ( "aspnetCoreReactTemplate.Models.Contact" , b =>
93
93
{
94
- b . Property < int > ( "Id " )
94
+ b . Property < int > ( "id " )
95
95
. ValueGeneratedOnAdd ( )
96
96
. HasColumnName ( "id" ) ;
97
97
98
- b . Property < string > ( "Email " )
98
+ b . Property < string > ( "email " )
99
99
. HasColumnName ( "email" )
100
100
. HasMaxLength ( 30 ) ;
101
101
102
- b . Property < string > ( "FirstName " )
102
+ b . Property < string > ( "firstName " )
103
103
. IsRequired ( )
104
104
. HasColumnName ( "first_name" ) ;
105
105
106
- b . Property < string > ( "LastName " )
106
+ b . Property < string > ( "lastName " )
107
107
. IsRequired ( )
108
108
. HasColumnName ( "last_name" ) ;
109
109
110
- b . Property < string > ( "Phone " )
110
+ b . Property < string > ( "phone " )
111
111
. HasColumnName ( "phone" ) ;
112
112
113
- b . HasKey ( "Id " )
113
+ b . HasKey ( "id " )
114
114
. HasName ( "pk_contacts" ) ;
115
115
116
116
b . ToTable ( "contacts" ) ;
You can’t perform that action at this time.
0 commit comments