public static void MapToWriter(DbContext context, Contact entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("email", entity.Email); context.AddParameterWithValue("name", entity.Name); context.AddParameterWithValue("phone_number", entity.PhoneNumber); }
public static void MapToWriter(DbContext context, InquiryFull entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("document_name", entity.DocumentName); context.AddParameterWithValue("inspection", entity.Inspection); context.AddParameterWithValue("joint_measurement", entity.JointMeasurement); context.AddParameterWithValue("floor_measurement", entity.FloorMeasurement); context.AddParameterWithValue("note", entity.Note); context.AddParameterWithValue("document_date", entity.DocumentDate); context.AddParameterWithValue("document_file", entity.DocumentFile); context.AddParameterWithValue("access_policy", entity.Access.AccessPolicy); context.AddParameterWithValue("type", entity.Type); context.AddParameterWithValue("standard_f3o", entity.StandardF3o); }
private static void MapToWriter(DbContext context, Organization entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("phone_number", entity.PhoneNumber); context.AddParameterWithValue("branding_logo", entity.BrandingLogo); context.AddParameterWithValue("home_address", entity.HomeStreet); context.AddParameterWithValue("home_address_number", entity.HomeAddressNumber); context.AddParameterWithValue("home_address_number_postfix", entity.HomeAddressNumberPostfix); context.AddParameterWithValue("home_city", entity.HomeCity); context.AddParameterWithValue("home_postbox", entity.HomePostbox); context.AddParameterWithValue("home_zipcode", entity.HomeZipcode); }
public static void MapToWriter(DbContext context, User entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("given_name", entity.GivenName); context.AddParameterWithValue("last_name", entity.LastName); context.AddParameterWithValue("email", entity.Email); context.AddParameterWithValue("avatar", entity.Avatar); context.AddParameterWithValue("job_title", entity.JobTitle); context.AddParameterWithValue("phone_number", entity.PhoneNumber); context.AddParameterWithValue("role", entity.Role); }
public static void MapToWriter(DbContext context, Recovery entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("note", entity.Note); context.AddParameterWithValue("access_policy", entity.Access.AccessPolicy); context.AddParameterWithValue("type", entity.Type); context.AddParameterWithValue("document_date", entity.DocumentDate); context.AddParameterWithValue("document_file", entity.DocumentFile); context.AddParameterWithValue("document_name", entity.DocumentName); }
public static void MapToWriter(DbContext context, Address entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("building_number", entity.BuildingNumber); context.AddParameterWithValue("postal_code", entity.PostalCode); context.AddParameterWithValue("street", entity.Street); context.AddParameterWithValue("is_active", entity.IsActive); context.AddParameterWithValue("external_id", entity.ExternalId); context.AddParameterWithValue("external_source", entity.ExternalSource); }
public static void MapToWriter(DbContext context, RecoverySample entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("recovery", entity.Recovery); context.AddParameterWithValue("address", entity.Address); context.AddParameterWithValue("note", entity.Note); context.AddParameterWithValue("status", entity.Status); context.AddParameterWithValue("type", entity.Type); context.AddParameterWithValue("pile_type", entity.PileType); context.AddParameterWithValue("contractor", entity.Contractor); context.AddParameterWithValue("facade", entity.Facade); context.AddParameterWithValue("permit", entity.Permit); context.AddParameterWithValue("permit_date", entity.PermitDate); context.AddParameterWithValue("recovery_date", entity.RecoveryDate); }
public static void MapToWriter(DbContext context, Incident entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("foundation_type", entity.FoundationType); context.AddParameterWithValue("chained_building", entity.ChainedBuilding); context.AddParameterWithValue("owner", entity.Owner); context.AddParameterWithValue("foundation_recovery", entity.FoundationRecovery); context.AddParameterWithValue("neightbor_recovery", entity.NeighborRecovery); context.AddParameterWithValue("foundation_damage_cause", entity.FoundationDamageCause); context.AddParameterWithValue("document_file", entity.DocumentFile); context.AddParameterWithValue("note", entity.Note); context.AddParameterWithValue("internal_note", entity.InternalNote); context.AddParameterWithValue("foundation_damage_characteristics", entity.FoundationDamageCharacteristics); context.AddParameterWithValue("environment_damage_characteristics", entity.EnvironmentDamageCharacteristics); context.AddParameterWithValue("email", entity.Email); context.AddParameterWithValue("address", entity.Address); context.AddParameterWithValue("audit_status", entity.AuditStatus); context.AddParameterWithValue("question_type", entity.QuestionType); context.AddJsonParameterWithValue("meta", entity.Meta); }
private static void MapToWriter(DbContext context, InquirySample entity) { if (entity is null) { throw new ArgumentNullException(nameof(entity)); } context.AddParameterWithValue("inquiry", entity.Inquiry); context.AddParameterWithValue("address", entity.Address); context.AddParameterWithValue("note", entity.Note); context.AddParameterWithValue("built_year", entity.BuiltYear); context.AddParameterWithValue("substructure", entity.Substructure); context.AddParameterWithValue("overall_quality", entity.OverallQuality); context.AddParameterWithValue("wood_quality", entity.WoodQuality); context.AddParameterWithValue("construction_quality", entity.ConstructionQuality); context.AddParameterWithValue("wood_capacity_horizontal_quality", entity.WoodCapacityHorizontalQuality); context.AddParameterWithValue("pile_wood_capacity_vertical_quality", entity.PileWoodCapacityVerticalQuality); context.AddParameterWithValue("carrying_capacity_quality", entity.CarryingCapacityQuality); context.AddParameterWithValue("mason_quality", entity.MasonQuality); context.AddParameterWithValue("wood_quality_necessity", entity.WoodQualityNecessity); context.AddParameterWithValue("construction_level", entity.ConstructionLevel); context.AddParameterWithValue("wood_level", entity.WoodLevel); context.AddParameterWithValue("pile_diameter_top", entity.PileDiameterTop); context.AddParameterWithValue("pile_diameter_bottom", entity.PileDiameterBottom); context.AddParameterWithValue("pile_head_level", entity.PileHeadLevel); context.AddParameterWithValue("pile_tip_level", entity.PileTipLevel); context.AddParameterWithValue("foundation_depth", entity.FoundationDepth); context.AddParameterWithValue("mason_level", entity.MasonLevel); context.AddParameterWithValue("concrete_charger_length", entity.ConcreteChargerLength); context.AddParameterWithValue("pile_distance_length", entity.PileDistanceLength); context.AddParameterWithValue("wood_penetration_depth", entity.WoodPenetrationDepth); context.AddParameterWithValue("cpt", entity.Cpt); context.AddParameterWithValue("monitoring_well", entity.MonitoringWell); context.AddParameterWithValue("groundwater_level_temp", entity.GroundwaterLevelTemp); context.AddParameterWithValue("groundlevel", entity.GroundLevel); context.AddParameterWithValue("groundwater_level_net", entity.GroundwaterLevelNet); context.AddParameterWithValue("foundation_type", entity.FoundationType); context.AddParameterWithValue("enforcement_term", entity.EnforcementTerm); context.AddParameterWithValue("recovery_advised", entity.RecoveryAdvised); context.AddParameterWithValue("damage_cause", entity.DamageCause); context.AddParameterWithValue("damage_characteristics", entity.DamageCharacteristics); context.AddParameterWithValue("construction_pile", entity.ConstructionPile); context.AddParameterWithValue("wood_type", entity.WoodType); context.AddParameterWithValue("wood_encroachement", entity.WoodEncroachement); context.AddParameterWithValue("crack_indoor_restored", entity.CrackIndoorRestored); context.AddParameterWithValue("crack_indoor_type", entity.CrackIndoorType); context.AddParameterWithValue("crack_indoor_size", entity.CrackIndoorSize); context.AddParameterWithValue("crack_facade_front_restored", entity.CrackFacadeFrontRestored); context.AddParameterWithValue("crack_facade_front_type", entity.CrackFacadeFrontType); context.AddParameterWithValue("crack_facade_front_size", entity.CrackFacadeFrontSize); context.AddParameterWithValue("crack_facade_back_restored", entity.CrackFacadeBackRestored); context.AddParameterWithValue("crack_facade_back_type", entity.CrackFacadeBackType); context.AddParameterWithValue("crack_facade_back_size", entity.CrackFacadeBackSize); context.AddParameterWithValue("crack_facade_left_restored", entity.CrackFacadeLeftRestored); context.AddParameterWithValue("crack_facade_left_type", entity.CrackFacadeLeftType); context.AddParameterWithValue("crack_facade_left_size", entity.CrackFacadeLeftSize); context.AddParameterWithValue("crack_facade_right_restored", entity.CrackFacadeRightRestored); context.AddParameterWithValue("crack_facade_right_type", entity.CrackFacadeRightType); context.AddParameterWithValue("crack_facade_right_size", entity.CrackFacadeRightSize); context.AddParameterWithValue("deformed_facade", entity.DeformedFacade); context.AddParameterWithValue("threshold_updown_skewed", entity.ThresholdUpdownSkewed); context.AddParameterWithValue("threshold_front_level", entity.ThresholdFrontLevel); context.AddParameterWithValue("threshold_back_level", entity.ThresholdBackLevel); context.AddParameterWithValue("skewed_parallel", entity.SkewedParallel); context.AddParameterWithValue("skewed_perpendicular", entity.SkewedPerpendicular); context.AddParameterWithValue("skewed_facade", entity.SkewedFacade); context.AddParameterWithValue("settlement_speed", entity.SettlementSpeed); context.AddParameterWithValue("skewed_window_frame", entity.SkewedWindowFrame); }