jackow98 / F20SC---CW1

1 stars 0 forks source link

Null Value #3

Closed jackow98 closed 4 years ago

jackow98 commented 4 years ago
System.InvalidOperationException: The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value type.
  at at Read_Tabs(ObjectMaterializer`1 )
  at at System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext()
  at WindowsFormsApplication2.Functionality.BrowserFunctionality.LoadTabs(DatabaseFunctionality db) in C:\Users\Owner\.ssh\F20SC---CW1\Coursework\WindowsFormsApplication2\Functionality\BrowserFunctionality.cs:19
  at WindowsFormsApplication2.GUI.BrowserWindow`1.LoadTabsToGui() in C:\Users\Owner\.ssh\F20SC---CW1\Coursework\WindowsFormsApplication2\GUI\BrowserWindow.cs:92
  at WindowsFormsApplication2.GUI.BrowserWindow`1..ctor() in C:\Users\Owner\.ssh\F20SC---CW1\Coursework\WindowsFormsApplication2\GUI\BrowserWindow.cs:22
  at Browser.Program.Main() in C:\Users\Owner\.ssh\F20SC---CW1\Coursework\WindowsFormsApplication2\Program.cs:23
jackow98 commented 4 years ago

Can't have null values in table