<?xml version="1.0" encoding="utf-8"?>
<Database Name="MyBank" Class="MyBankDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
  <Connection Mode="WebSettings" ConnectionString="Data Source=.;Initial Catalog=MyBank;Integrated Security=True" SettingsObjectName="System.Configuration.ConfigurationManager.ConnectionStrings" SettingsPropertyName="MyBankConnectionString" Provider="System.Data.SqlClient" />
  <Table Name="dbo.Accounts" Member="Accounts">
    <Type Name="Accounts">
      <Column Name="Id" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
      <Column Name="customerId" Type="System.String" DbType="VarChar(50)" CanBeNull="true" />
      <Column Name="customerPassword" Type="System.String" DbType="VarChar(50)" CanBeNull="true" />
      <Column Name="balance" Type="System.Decimal" DbType="Money" CanBeNull="true" />
      <Column Name="stateId" Type="System.Int32" DbType="Int" CanBeNull="true" />
      <Association Name="AccountStates_Accounts" Member="AccountStates" ThisKey="stateId" Type="AccountStates" IsForeignKey="true" />
    </Type>
  </Table>
  <Table Name="dbo.AccountStates" Member="AccountStates">
    <Type Name="AccountStates">
      <Column Name="Id" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
      <Column Name="name" Type="System.String" DbType="VarChar(50)" CanBeNull="true" />
      <Column Name="Description" Type="System.String" DbType="VarChar(50)" CanBeNull="true" />
      <Association Name="AccountStates_Accounts" Member="Accounts" OtherKey="stateId" Type="Accounts" />
    </Type>
  </Table>
</Database>