Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.
FluentMigrator uses the Builder pattern and Interpreter pattern extensively. When extending the public ISyntax API, prefer short methods with one parameter that return a Syntax-suffixed class.
Examples
Creating a table Blog.Posts with an auto-incrementing primary key
Create.Table("Posts")
.InSchema("Blog")
.WithColumn("PostId").AsInt64().NotNullable().Identity().PrimaryKey()
.WithColumn("Title").AsString(75).NotNullable()
.WithColumn("Body").AsString(int.MaxValue).NotNullable();
Creating a primary key on an existing table
Create.PrimaryKey("PK_Posts")
.OnTable("Posts")
.InSchema("Blog")
.Column("PostId");
General Coding Guidelines
Otherwise, follow general C# coding guidelines.
Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.
FluentMigrator uses the Builder pattern and Interpreter pattern extensively. When extending the public ISyntax API, prefer short methods with one parameter that return a Syntax-suffixed class.
Examples
Creating a table Blog.Posts with an auto-incrementing primary key
Creating a primary key on an existing table
General Coding Guidelines
Otherwise, follow general C# coding guidelines.