Esempio n. 1
0
 public async Task LinkIdentifierMappingsAsync(CdcValueIdentifierMappingCollection coll, IStringIdentifierGenerator idGen)
 {
     coll.AddAsync(GlobalId == default, async() => new CdcValueIdentifierMapping {
         Value = this, Property = nameof(GlobalId), Schema = "Legacy", Table = "Person", Key = this.CreateIdentifierMappingKey(), GlobalId = await idGen.GenerateIdentifierAsync <PersonCdc>().ConfigureAwait(false)
     });
     Addresses?.ForEach(async item => await item.LinkIdentifierMappingsAsync(coll, idGen).ConfigureAwait(false));
 }
Esempio n. 2
0
 public async Task LinkIdentifierMappingsAsync(CdcValueIdentifierMappingCollection coll, IStringIdentifierGenerator idGen)
 {
     coll.AddAsync(GlobalId == default, async() => new CdcValueIdentifierMapping {
         Value = this, Property = nameof(GlobalId), Schema = "Legacy", Table = "Address", Key = this.CreateIdentifierMappingKey(), GlobalId = await idGen.GenerateIdentifierAsync <AddressCdc>().ConfigureAwait(false)
     });
     coll.AddAsync(GlobalAlternateAddressId == default && AlternateAddressId != default, async() => new CdcValueIdentifierMapping {
         Value = this, Property = nameof(GlobalAlternateAddressId), Schema = "Legacy", Table = "Address", Key = AlternateAddressId.ToString(), GlobalId = await idGen.GenerateIdentifierAsync <AddressCdc>().ConfigureAwait(false)
     });
 }
Esempio n. 3
0
 public void RelinkIdentifierMappings(CdcValueIdentifierMappingCollection coll)
 {
     coll.Invoke(GlobalId == default, () => GlobalId = coll.GetGlobalId(this, nameof(GlobalId)));
     coll.Invoke(GlobalAlternateAddressId == default && AlternateAddressId != default, () => GlobalAlternateAddressId = coll.GetGlobalId(this, nameof(GlobalAlternateAddressId)));
 }
Esempio n. 4
0
 public void RelinkIdentifierMappings(CdcValueIdentifierMappingCollection coll)
 {
 }
Esempio n. 5
0
 public async Task LinkIdentifierMappingsAsync(CdcValueIdentifierMappingCollection coll, IStringIdentifierGenerator idGen)
 {
 }
Esempio n. 6
0
 public void RelinkIdentifierMappings(CdcValueIdentifierMappingCollection coll)
 {
     coll.Invoke(GlobalId == default, () => GlobalId = coll.GetGlobalId(this, nameof(GlobalId)));
     Addresses?.ForEach(item => item.RelinkIdentifierMappings(coll));
 }