Beispiel #1
0
        public override IEnumerable <IEntity> GetConcepts(Concept concept, IDataReader reader, KeyMasterOffset keyMaster)
        {
            var id = string.IsNullOrEmpty(Id) ? KeyMaster.GetLocationId() : int.Parse(reader[Id].ToString());

            yield return(new Location
            {
                Id = id,
                State = reader.GetString(State),
                SourceValue = reader.GetString(SourceValue)
            });
        }
        public override IEnumerable <IEntity> GetConcepts(Concept concept, IDataRecord reader, KeyMasterOffset keyOffset)
        {
            var id = string.IsNullOrEmpty(Id) ? KeyMaster.GetLocationId() : reader.GetLong(Id);

            yield return(new Location
            {
                Id = id.Value,
                State = reader.GetString(State),
                SourceValue = reader.GetString(SourceValue),
                County = reader.GetString(Country),
                Address1 = reader.GetString(Address1),
                Address2 = reader.GetString(Address2)
            });
        }