Show / Hide Table of Contents

Class DataContext

Inheritance
object
DataContext
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Data
Assembly: DotNetNuke.dll
Syntax
public class DataContext

Constructors

DataContext()

Declaration
public DataContext()

Methods

Instance()

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use the overload taking IHostSettings. Scheduled for removal in v12.0.0.")]
public static IDataContext Instance()
Returns
Type Description
IDataContext

Instance(IHostSettings)

Declaration
public static IDataContext Instance(IHostSettings hostSettings)
Parameters
Type Name Description
IHostSettings hostSettings
Returns
Type Description
IDataContext

Instance(IHostSettings, Dictionary<Type, IMapper>)

Declaration
public static IDataContext Instance(IHostSettings hostSettings, Dictionary<Type, IMapper> mappers)
Parameters
Type Name Description
IHostSettings hostSettings
Dictionary<Type, IMapper> mappers
Returns
Type Description
IDataContext

Instance(IHostSettings, string)

Declaration
public static IDataContext Instance(IHostSettings hostSettings, string connectionStringName)
Parameters
Type Name Description
IHostSettings hostSettings
string connectionStringName
Returns
Type Description
IDataContext

Instance(IHostSettings, string, Dictionary<Type, IMapper>)

Declaration
public static IDataContext Instance(IHostSettings hostSettings, string connectionStringName, Dictionary<Type, IMapper> mappers)
Parameters
Type Name Description
IHostSettings hostSettings
string connectionStringName
Dictionary<Type, IMapper> mappers
Returns
Type Description
IDataContext

Instance(Dictionary<Type, IMapper>)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use the overload taking IHostSettings. Scheduled for removal in v12.0.0.")]
public static IDataContext Instance(Dictionary<Type, IMapper> mappers)
Parameters
Type Name Description
Dictionary<Type, IMapper> mappers
Returns
Type Description
IDataContext

Instance(string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use the overload taking IHostSettings. Scheduled for removal in v12.0.0.")]
public static IDataContext Instance(string connectionStringName)
Parameters
Type Name Description
string connectionStringName
Returns
Type Description
IDataContext

Instance(string, Dictionary<Type, IMapper>)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use the overload taking IHostSettings. Scheduled for removal in v12.0.0.")]
public static IDataContext Instance(string connectionStringName, Dictionary<Type, IMapper> mappers)
Parameters
Type Name Description
string connectionStringName
Dictionary<Type, IMapper> mappers
Returns
Type Description
IDataContext

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS