SampleDataAttribute class
namespace: Serenity.Extensions assembly: Serenity.Extensions
Marks a migration that adds sample data, so it only runs when the migration runner requests either all the sample data via AllTag, or the sample data of a module via GetTag, e.g. sample:Dashboards.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)]
public class SampleDataAttribute : TagsAttribute
| parameter | description |
|---|---|
| key | The key of the module the sample data belongs to, e.g. Dashboards. |
Public Members
| name | description |
|---|---|
| SampleDataAttribute(…) | Marks a migration that adds sample data, so it only runs when the migration runner requests either all the sample data via AllTag, or the sample data of a module via GetTag, e.g. sample:Dashboards. |
| const AllTag | The tag that requests the sample data of all modules, i.e. sample:All. |
| static GetTag(…) | Gets the tag that requests the sample data of the module with the specified key. |
See Also
- Source: SampleDataAttribute.cs