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. }; }
public TeamSql(IBaseballRepoRecordPattern Repo, TeamRecord Record) : base(Record) { _repo = Repo; }