public static PartnerServiceConfig GetPartnerServiceConfig(int PartnerId) { var result = new PartnerServiceConfig(); using (var connection = new OracleConnection(FscApplication.Current.Settings.FscConnectionString)) { connection.Open(); result = connection.QueryFirst <PartnerServiceConfig>($"select partner_order_id PartnerId, version Version, service_rule ServiceRule from " + $"fsc_dba.offnet_service where partner_order_id = :PartnerId", new { PartnerId }); connection.Close(); } return(result); }
public static PartnerServiceConfig GetPartnerServiceConfig(PartnerKeyWeb key) { var config = new PartnerServiceConfig(); return(config.Get(key)); }