Skip to content

✨ Set up Copilot instructions #2150

Description

@jzabroski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions