Answers for "when creating a new boolean column in an existing table how to set the default value as true in c# models code first"

C#
0

when creating a new boolean column in an existing table how to set the default value as true in c# models code first

public class Revision
{
    ...
    public Boolean IsReleased { get; set; }
  	public Revision(){
    	IsReleased = true;
    }
    ....
}
Posted by: Guest on October-08-2021

Code answers related to "when creating a new boolean column in an existing table how to set the default value as true in c# models code first"

C# Answers by Framework

Browse Popular Code Answers by Language