Show / Hide Table of Contents

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 . Returns null if given is not present in the Properties dictionary.

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

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft