这是我无法使用的代码。
modelBuilder.Entity("eSmart2.Contract.Models.MODELNAME", b =>
{
b.Property<int?>("SITE_ID");
}
我找不到错误在哪里。它不起作用,也没有显示错误,但不起作用。
答案 0 :(得分:0)
如果我猜对了您的问题,那么这里是解决方法:
import React from 'react';
import{View,SafeAreaView,Text,Image,ScrollView} from 'react-native';
import Icons from 'react-native-vector-icons/Ionicons';
import { createStackNavigator} from 'react-navigation-stack';
import {createAppContainer} from 'react-navigation'
import ListofHome from '../component/props/Index'
import Navbar from '../navigation/Navbar'
import Detail from './Details'
import { TouchableOpacity } from 'react-native-gesture-handler';
class Home extends React.Component{
render(){
return(
<View style={{
flex:1,
backgroundColor: '#f5fcff',
}}>
<Navbar/>
<ScrollView style={{flex:1}}>
<View style={{marginTop:3,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'}}>
<Text style={{fontWeight:'800',color:'red'}}>
JOB POSTS
</Text>
<Text>View more..</Text>
</View>
<TouchableOpacity onPress={() => {
/* 1. Navigate to the Details route with params */
this.props.navigation.navigate('Details', {
itemId: 86,
otherParam: 'anything you want here',
});
}}>
<ListofHome
name="The list of master plans about me that is"/>
</TouchableOpacity>
<ListofHome name="About your page that is do"/>
<ListofHome name="About your page that is do"/>
<ListofHome name="About your page that is do"/>
<ListofHome name="About your page that is do"/>
<ListofHome name="About your page that is do"/>
<ListofHome name="About your page that is do"/>
<ListofHome name="About your page that is do"/>
</ScrollView>
</View>
)
}
}
const AppNavigator = createStackNavigator(
{
Home: {
screen: Home
},
Details:{
screen:Detail,
}
},
{
initialRouteName: 'Home',
}
);
export default AppNavigator
您必须将AppNavigator导出为默认值,并使用为屏幕定义的相同键导航屏幕。