Hello.
Does anyone know how could I get the data model class updated after I make some custom changes in the .dbml file.
I tried to manually mark some fields nullable in the .dbml, but changes are not visible in the code, no matter how many times I rebuild. I even tried to edit .dbml(xml) in an external tool, and then save, but no use.
edit<< Here's the snippet for shaunmartin...
<Table Name="dbo.Clients_Banks" Member="Clients_Banks">
<Type Name="Clients_Banks">
<Column Name="ID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="FKClients" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="BankName" Type="System.String" DbType="NVarChar(100) NOT NULL" CanBeNull="false" />
<Column Name="BankAccountNo" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" />
<Column Name="Party" Type="System.String" DbType="NVarChar(50)" CanBeNull="true" />
<Column Name="ClientAccountNo" Type="System.String" DbType="NVarChar(50) NOT NULL" CanBeNull="false" />
<Column Name="Active" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
<Column Name="NonResidentialAccount" Type="System.Boolean" CanBeNull="false" />
<Column Name="Swift" Type="System.String" CanBeNull="true" />
<Column Name="Iban" Type="System.String" CanBeNull="true" />
<Association Name="Clients_Clients_Banks" Member="Clients" ThisKey="FKClients" OtherKey="ID" Type="Clients" IsForeignKey="true" />
</Type>
I just changed CanBeNull property from false, to true, for the last two members (Iban and Swift). Nothing major, but I need this to be done.