I have the following in a C# class.
public bool answer1Correct { get; set; }
public bool answer2Correct { get; set; }
public bool answer3Correct { get; set; }
public bool answer4Correct { get; set; }
public bool answer5Correct { get; set; }
I want to use Entity Framework to connect these to a table in SQL Server. What datatype should I use when I create the columns in SQL Server 2012 ?
Use the datatype BIT ... the Entity Framework will map it correctly
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With