Class DataSeedContext
Inheritance
System.Object
DataSeedContext
Namespace: Volo.Abp.Data
Assembly: Volo.Abp.Data.dll
Syntax
public class DataSeedContext : object
Constructors
DataSeedContext(Nullable<Guid>)
Declaration
public DataSeedContext(Guid? tenantId = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Guid> | tenantId |
Properties
Item[String]
Gets/sets a key-value on the Properties.
Declaration
public object this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the property |
Property Value
Type | Description |
---|---|
System.Object | Returns the value in the Properties dictionary by given |
Properties
Can be used to get/set custom properties.
Declaration
public Dictionary<string, object> Properties { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.Object> |
TenantId
Declaration
public Guid? TenantId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Guid> |
Methods
WithProperty(String, Object)
Sets a property in the Properties dictionary. This is a shortcut for nested calls on this object.
Declaration
public virtual DataSeedContext WithProperty(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Object | value |
Returns
Type | Description |
---|---|
DataSeedContext |