Пример #1
0
        } // Map function closer

        public List <SqlParameter> MapParamsForUpsert(AddressData entity) => new List <SqlParameter>
        {
            BuildParam("@address_key", entity.AddressKey),
            BuildParam("@address_type_key", entity.AddressTypeKey),
            BuildParam("@entity_key", entity.EntityKey),
            BuildParam("@entity_type_key", entity.EntityTypeKey),
            BuildParam("@address_line_1", entity.AddressLine1),
            BuildParam("@address_line_2", entity.AddressLine2),
            BuildParam("@address_line_3", entity.AddressLine3),
            BuildParam("@address_line_4", entity.AddressLine4),
            BuildParam("@address_city", entity.AddressCity),
            BuildParam("@address_state_prov", entity.AddressStateProv),
            BuildParam("@address_county", entity.AddressCounty),
            BuildParam("@address_country", entity.AddressCountry),
            BuildParam("@address_postal_code", entity.AddressPostalCode),
            BuildParam("@address_notes", entity.AddressNotes),
            BuildParam("@address_default_flg", entity.AddressDefaultFlg),
            BuildParam("@address_active_flg", entity.AddressActiveFlg),
            GetOutParam()
        };
Пример #2
0
 public List <SqlParameter> MapParamsForDelete(AddressData entity) => MapParamsForDelete(entity.AddressKey);