Muhammad Imran Ansari4y agoPosted Mar 28, 2022, 10:49 AMAccepted answerCheck the ID column in your db.Units table and 'Unit' class. It seems mismatching of data type of any field or order of fields in Unit table and class. One column data type is Int32 and other side Guid.
Muhammad Imran Ansari4y agoPosted Mar 29, 2022, 4:46 AMIn database, it should be 'UniqueIdentifier'. Please check the SQL Server Data Type Mappings with C#https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql-server-data-type-mappings
AQArbaz Qureshi4y agoPosted Mar 29, 2022, 4:17 AMSir I am using Guid for the Id in the model class, how we create the Id in the database?
Muhammad Imran AnsariPosted Mar 28, 2022, 10:49 AM
Muhammad Imran AnsariPosted Mar 29, 2022, 4:46 AM
Arbaz QureshiPosted Mar 29, 2022, 4:17 AM