Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm writing a Windows application (.NET 4), SQL Server 2008 and EF 4.0:

Table "Currencies" in SQL Server is:

ID smallint (auto increment) PK
Name nvarchar(100) NOT NULL
Code nvarchar(10) NOT NULL
Rate float NOT NULL
IsAfter smallint NOT NULL (Default Value = 0)

Window Form Currency.cs:

Name: TextBox with property DataBinding.Text = bindingCurrency - Name
Code: TextBox with property DataBinding.Text = bindingCurrency - Code
Rate: TextBox with property DataBinding.Text = bindingCurrency - Rate
Show before/after money: ComboBox with property DataBinding.Text = bindingCurrency - IsAfter
ComboBox follow:
0 | Before money
1 | After money

bindingCurrency: BindingSource with property DataSource is entity of EF

Now I want to add currency but it's error. Can you help me???
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900