public void LoadMasterdataUpdateTemplate(string prefix, string key) { // read the masterdata update from resource MovilizerMasterdataUpdate masterdataUpdate = TemplateHelper.DeserializeMasterdataUpdateFromResourceCode( prefix, key, MovilizerWebServiceConstants.WS_NAMESPACE); CacheTemplate(key, masterdataUpdate); }
public MasterdataUpdateTemplate(MovilizerMasterdataUpdate masterdataUpdate) { _masterdataUpdate = SerializeHelper.CloneObject(masterdataUpdate); // extract entries _entries = new List<MasterdataEntryTemplate>(); MovilizerGenericDataContainerEntry[] entries = _masterdataUpdate.data; if (entries != null) { foreach (MovilizerGenericDataContainerEntry entry in entries) { _entries.Add(new MasterdataEntryTemplate(entry)); } } }
public MasterdataUpdateTemplate(MovilizerMasterdataUpdate masterdataUpdate) { _masterdataUpdate = SerializeHelper.CloneObject(masterdataUpdate); // extract entries _entries = new List <MasterdataEntryTemplate>(); MovilizerGenericDataContainerEntry[] entries = _masterdataUpdate.data; if (entries != null) { foreach (MovilizerGenericDataContainerEntry entry in entries) { _entries.Add(new MasterdataEntryTemplate(entry)); } } }