Esempio n. 1
0
 public TeamFile(TeamRecord Record) : base(Record)
 {
     _jsonSerializerSettings = new JsonSerializerSettings
     {
         TypeNameHandling           = TypeNameHandling.Auto,          // Enable serialization of interfaces.
         PreserveReferencesHandling = PreserveReferencesHandling.All, // Enable circular references in object graph.
         ContractResolver           = new FieldContractResolver()     // Serialize public fields instead of public properties.
     };
 }
Esempio n. 2
0
 public TeamSql(IBaseballRepoRecordPattern Repo, TeamRecord Record) : base(Record)
 {
     _repo = Repo;
 }