Class DynamoContext
This class is responsible for managing the context of the DynamoDB for Code First strategy.
Inheritance
DynamoContext
Assembly: Innovt.Cloud.AWS.Dynamo.dll
Syntax
public abstract class DynamoContext
Constructors
|
Edit this page
View Source
DynamoContext()
Declaration
protected DynamoContext()
Properties
|
Edit this page
View Source
IgnoreNullValues
It tells the context to ignore null properties when saving an entity.
Declaration
public bool IgnoreNullValues { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetEntityBuilder(string)
Declaration
public EntityTypeBuilder GetEntityBuilder(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
GetEntityBuilder<T>()
Declaration
public EntityTypeBuilder GetEntityBuilder<T>()
Returns
Type Parameters
|
Edit this page
View Source
GetPropertyConverter(Type)
Declaration
public IPropertyConverter GetPropertyConverter(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Edit this page
View Source
HasTypeBuilder(string)
Check if the entity has a builder.
Declaration
public bool HasTypeBuilder(string entityName)
Parameters
Type |
Name |
Description |
string |
entityName |
The name of the typebuilder
|
Returns
|
Edit this page
View Source
HasTypeBuilder(Type)
Declaration
public bool HasTypeBuilder(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Edit this page
View Source
HasTypeBuilder<T>(object)
Utility method to add a new entity to the context
Declaration
public bool HasTypeBuilder<T>(object instance = null)
Parameters
Type |
Name |
Description |
object |
instance |
|
Returns
Type Parameters
|
Edit this page
View Source
OnModelCreating(ModelBuilder)
Declaration
protected abstract void OnModelCreating(ModelBuilder modelBuilder)
Parameters
|
Edit this page
View Source
SetCulture(CultureInfo)
Set the culture that will be used to convert the properties.
Declaration
public bool SetCulture(CultureInfo cultureInfo)
Parameters
Returns
Extension Methods