【在线等】c#命名空间不能直接包含字段或方法之类的成员
<?xml version="1.0" encoding="utf-8"?><Database Name="HP" Class="DataClasses1DataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
<Connection Mode="AppSettings" ConnectionString="Data Source=.\\sqlexpress;AttachDbFilename=|DataDirectory|\\HP.MDF;Integrated Security=True" SettingsObjectName="SelecttDoctor.Properties.Settings" SettingsPropertyName="HPConnectionString3" Provider="System.Data.SqlClient" />
<Table Name="dbo.DoctorInfo" Member="DoctorInfo">
<Type Name="DoctorInfo">
<Column Name="DoctorID" Type="System.String" DbType="Char(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="DoctorName" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.SelectInfo" Member="SelectInfo">
<Type Name="SelectInfo">
<Column Name="DoctorID" Type="System.String" DbType="Char(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="PatientID" Type="System.String" DbType="Char(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="SelectTime" Type="System.TimeSpan" DbType="Time" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.PatientInfo" Member="PatientInfo">
<Type Name="PatientInfo">
<Column Name="PatientID" Type="System.String" DbType="Char(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="PatientName" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
</Type>
</Table>
</Database>
如上,求高手啊