如果您的存储库具有属性
import React from 'react';
import { render } from "react-dom";
import styled from 'styled-components'
import { Button,Grid,Container} from 'semantic-ui-react'
import PropTypes from 'prop-types'
const mID = 'test'
const StyledBlock = styled(Container)`
{/*i don't want to style here */}
background-color: yellow ;
height: 450px;
@media only screen and (max-width: 767px) and (min-width: 320px) {
height: 550px;
}
> * { //applies for all under parent class,class that is applied by SC on parent
color: magenta
}
& .${mID}__column{ //all elements under & i.e parent class (which is StyledBlock) with class {mID}__column
color :green;
}
`
const StyledSection = styled.section`
background: #ffffff;
box-shadow: 0px 1px 0px #dfdfdf;
margin: 12% 10% 10% 30%;
height: 150px;
width: 170px;
@media only screen and (max-width: 767px) and (min-width: 320px) {
margin: 10% 0 25% 25%;
width: 172px;
}
`
const Header = styled.h4`
text-align: center;
position: relative;
top: 10%;
`
const StyledButton = styled(Button)`
position: relative;
bottom: -60px;
margin: 0px;
width: 100%;
top: 9.32%;
`
const Report = (name) => {
const handleClick = async (e) => {
console.log(e)
}
return (
<Grid.Column key={name} className={`${mID}__column`}>
<StyledSection>
<Header>{name}</Header>
<StyledButton secondary onClick={() => handleClick(name)} >
Download
</StyledButton>
</StyledSection>
</Grid.Column>
)
}
const Reports = ({className}) => {
console.log('className ',className)
return(
<Container className={className}>
<StyledBlock>
<Grid>
<Grid.Row>{["deen","john"].map((name) => Report(name))}</Grid.Row>
</Grid>
</StyledBlock>
</Container>
)}
Reports.propTypes = {
names: PropTypes.array,onlineShowId: PropTypes.number
}
const StyledReports = styled(Reports)`
background-color:blue; //to apply this,SC need a className on this element to apply
.${mID} {
&__column {
color: gold
}
}
${StyledBlock}{
background-color: red ; //higher specificity than in styledblock
}
`
render(<StyledReports />,document.getElementById("root"))
您可以通过使用基类对此进行抽象
Oracle.ManagedDataAccess.Client.OracleConnection DbConn
现在,根据您需要的功能,您可以传递System.Data.Common.DbConnection DbConn
或Oracle.ManagedDataAccess.Client.OracleConnection
。
大多数功能对这两个版本均适用,但是Oracle.DataAccess.Client.OracleConnection
仅对非托管版本有效。因此,在您的代码中,只需
BulkCopy
本文链接:https://www.f2er.com/2418969.html