shima2006
یک شنبه 14 آذر 1389, 14:32 عصر
سلام دوستان
بعد از کلی مشقت بالاخره یک برنامه کوچولو به صورت سه لایه نوشتم ... به نظر خودم که درسته:لبخند: ولی نمیدونم چرا خطا داره!
private void button1_Click(object sender, EventArgs e)
{
try
{
BOL.Sanad san = new BOL.Sanad();
san.Accountid = Convert.ToInt32(idtxt.Text);
san.Title = titletxt.Text;
san.Owe =Convert.ToDecimal(owetxt.Text);
san.Creditor =Convert.ToDecimal(creditortxt.Text);
san.Add();
}
Error 1 'Accounting2.BOL.Sanad' does not contain a constructor that takes '0' arguments
بعد از کلی مشقت بالاخره یک برنامه کوچولو به صورت سه لایه نوشتم ... به نظر خودم که درسته:لبخند: ولی نمیدونم چرا خطا داره!
private void button1_Click(object sender, EventArgs e)
{
try
{
BOL.Sanad san = new BOL.Sanad();
san.Accountid = Convert.ToInt32(idtxt.Text);
san.Title = titletxt.Text;
san.Owe =Convert.ToDecimal(owetxt.Text);
san.Creditor =Convert.ToDecimal(creditortxt.Text);
san.Add();
}
Error 1 'Accounting2.BOL.Sanad' does not contain a constructor that takes '0' arguments