[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 #1
public bool WillCreateView { get; set; } = true
// Also settable via constructor parameter #2
public bool WillCreateApi { get; set; } = true
// Also settable via constructor parameter #2
public bool WillCreateApi { get; set; } = true