<?xml version="1.0"?>
<Entity>
	<Name>UserRole</Name>
	<Type>Single</Type>
	<Table>
		<Name>UserRole</Name>
		<Column>
			<Name>UserRoleCode</Name>
			<DataType>System.String</DataType>
			<IsKey>true</IsKey>
			<IsAllowNull>false</IsAllowNull>
			<ColumnSize>50</ColumnSize>
		</Column>
		<Column>
			<Name>UserCode</Name>
			<DataType>System.String</DataType>
			<IsKey>false</IsKey>
			<IsAllowNull>true</IsAllowNull>
			<ColumnSize>50</ColumnSize>
		</Column>
		<Column>
			<Name>StationCode</Name>
			<DataType>System.String</DataType>
			<IsKey>false</IsKey>
			<IsAllowNull>true</IsAllowNull>
			<ColumnSize>50</ColumnSize>
		</Column>
		<Sql>
			<Name>Select</Name>
			<String>select * from UserRole where  UserRoleCode=@UserRoleCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@UserRoleCode</Name>
				<Column>UserRoleCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>SelectAll</Name>
			<String>select * from UserRole</String>
			<CommandType>Text</CommandType>
		</Sql>
		<Sql>
			<Name>Insert</Name>
			<String> Insert into UserRole (  UserRoleCode, UserCode, StationCode ) values (  @UserRoleCode, @UserCode, @StationCode )</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@UserRoleCode</Name>
				<Column>UserRoleCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@UserCode</Name>
				<Column>UserCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@StationCode</Name>
				<Column>StationCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>Update</Name>
			<String> Update UserRole set UserCode=@UserCode,StationCode=@StationCode where  UserRoleCode=@UserRoleCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@UserRoleCode</Name>
				<Column>UserRoleCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@UserCode</Name>
				<Column>UserCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@StationCode</Name>
				<Column>StationCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>Delete</Name>
			<String> Delete from UserRole  where  UserRoleCode=@UserRoleCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@UserRoleCode</Name>
				<Column>UserRoleCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>SelectByUserCode</Name>
			<String>select * from UserRole where  UserCode=@UserCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@UserCode</Name>
				<Column>UserCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>SelectByStationCode</Name>
			<String>select * from UserRole where  StationCode=@StationCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@StationCode</Name>
				<Column>StationCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
	</Table>
</Entity>