Skip to content

[CreateController]

IntelliTect.Coalesce.DataAnnotations.CreateControllerAttribute

By default an API and View controller are both created. This allows for suppressing the creation of either or both of these.

Example Usage

c#
[CreateController(view: false, api: true)]
public class Person
{
    public int PersonId { get; set; }
    
    ...
}

Properties

// Also settable via constructor parameter #1
public bool WillCreateView { get; set; } = true

// Also settable via constructor parameter #2
public bool WillCreateApi { get; set; } = true


Coalesce is a free and open-source framework created by IntelliTect to fill our desire to create better apps, faster. IntelliTect is a high-end software architecture and development consulting firm based in Spokane, Washington.

If you're looking for help with your software project, whether it be a Coalesce application, other technologies, or even just an idea, reach out to us at info@intellitect.com — we'd love to start a conversation! Our clients range from Fortune 100 companies to local small businesses and non-profits.