Goran Bibic

Goran Bibic

  • 482
  • 2.9k
  • 198.1k

Change caps in visual studio 2019

Oct 28 2019 6:47 AM
What hapend in my app?
Can you help me
Change cap in app @oznaka  change to @Oznaka
I must repair all app 
Can you suggets or help me
Thank you
 
  1. string saveStaff = "declare @maxNo integer = 0 select @maxNo = isnull(max(redni_broj), 0) from [dbo].[jedinica_mjere]; Set @maxNo=@maxNo+1;  INSERT into dbo.jedinica_mjere "  
  2.                                        + " (redni_broj, Oznaka, ime) "  
  3.                                        + " VALUES (@maxNo,@Oznaka,@ime)";  
  4.   
  5.                       using (SqlCommand querySaveStaff = new SqlCommand(saveStaff))  
  6.                       {  
  7.                           querySaveStaff.Connection = openCon;  
  8.   
  9.                           querySaveStaff.Parameters.Add("@Oznaka", SqlDbType.VarChar, 255).Value = oznakaTextBox.Text;  
  10.                           querySaveStaff.Parameters.Add("@ime", SqlDbType.VarChar, 255).Value = imeTextBox.Text; 
 

Answers (1)