File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
FileContextCore/Serializer Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 66using System . IO ;
77using System . Linq ;
88using System . Text ;
9+ using Microsoft . EntityFrameworkCore ;
910
1011namespace FileContextCore . Serializer
1112{
@@ -18,7 +19,7 @@ class BSONSerializer : ISerializer
1819 public BSONSerializer ( IEntityType _entityType )
1920 {
2021 entityType = _entityType ;
21- propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Name ) . ToArray ( ) ;
22+ propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Relational ( ) . ColumnName ) . ToArray ( ) ;
2223 typeList = entityType . GetProperties ( ) . Select ( p => p . ClrType ) . ToArray ( ) ;
2324 }
2425
Original file line number Diff line number Diff line change 55using System . IO ;
66using System . Linq ;
77using System . Text ;
8+ using Microsoft . EntityFrameworkCore ;
89
910namespace FileContextCore . Serializer
1011{
@@ -17,7 +18,7 @@ class CSVSerializer : ISerializer
1718 public CSVSerializer ( IEntityType _entityType )
1819 {
1920 entityType = _entityType ;
20- propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Name ) . ToArray ( ) ;
21+ propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Relational ( ) . ColumnName ) . ToArray ( ) ;
2122 typeList = entityType . GetProperties ( ) . Select ( p => p . ClrType ) . ToArray ( ) ;
2223 }
2324
Original file line number Diff line number Diff line change 55using System . IO ;
66using System . Linq ;
77using System . Text ;
8+ using Microsoft . EntityFrameworkCore ;
89
910namespace FileContextCore . Serializer
1011{
@@ -36,7 +37,7 @@ FileInfo GetFilePath()
3637 public EXCELSerializer ( IEntityType _entityType , string _password , string databaseName )
3738 {
3839 entityType = _entityType ;
39- propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Name ) . ToArray ( ) ;
40+ propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Relational ( ) . ColumnName ) . ToArray ( ) ;
4041 typeList = entityType . GetProperties ( ) . Select ( p => p . ClrType ) . ToArray ( ) ;
4142 password = _password ;
4243 this . databaseName = databaseName ;
Original file line number Diff line number Diff line change 33using System ;
44using System . Collections . Generic ;
55using System . Linq ;
6+ using Microsoft . EntityFrameworkCore ;
67
78namespace FileContextCore . Serializer
89{
@@ -15,7 +16,7 @@ class JSONSerializer : ISerializer
1516 public JSONSerializer ( IEntityType _entityType )
1617 {
1718 entityType = _entityType ;
18- propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Name ) . ToArray ( ) ;
19+ propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Relational ( ) . ColumnName ) . ToArray ( ) ;
1920 typeList = entityType . GetProperties ( ) . Select ( p => p . ClrType ) . ToArray ( ) ;
2021 }
2122
Original file line number Diff line number Diff line change 77using System . Xml ;
88using System . Xml . Linq ;
99using System . Xml . Serialization ;
10+ using Microsoft . EntityFrameworkCore ;
1011
1112namespace FileContextCore . Serializer
1213{
@@ -19,7 +20,7 @@ class XMLSerializer : ISerializer
1920 public XMLSerializer ( IEntityType _entityType )
2021 {
2122 entityType = _entityType ;
22- propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Name ) . ToArray ( ) ;
23+ propertyKeys = entityType . GetProperties ( ) . Select ( p => p . Relational ( ) . ColumnName ) . ToArray ( ) ;
2324 typeList = entityType . GetProperties ( ) . Select ( p => p . ClrType ) . ToArray ( ) ;
2425 }
2526
You can’t perform that action at this time.
0 commit comments