Interface ISaveContextPrior
Inherited Members
Namespace: LemonEdge.API.Core.Extensions.SaveExtension
Assembly: LemonEdge.API.dll
Syntax
public interface ISaveContextPrior : ISaveContext
Methods
AddNewItem(Type)
Creates a new IBaseEntity of the provided that will be added to the current context.
Declaration
Task<IBaseEntity> AddNewItem(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
Task<IBaseEntity> |
AddNewItem<T>()
Creates a new IBaseEntity of type T that will be added to the current context.
Declaration
Task<T> AddNewItem<T>() where T : IBaseEntity
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
AppendCustomSqlScriptToSave(string)
Declaration
void AppendCustomSqlScriptToSave(string script)
Parameters
Type | Name | Description |
---|---|---|
string | script |
UpdateItemProperty(IBaseEntity, string, object?)
Updates the property of the item and all inherited items to the specified value for entities undergoing an Insert or Update operation. Delete operations will be ignored
Declaration
void UpdateItemProperty(IBaseEntity item, string propertyName, object? value)
Parameters
Type | Name | Description |
---|---|---|
IBaseEntity | item | The IBaseEntity entity to update |
string | propertyName | The property name as a string |
object | value | The value to assign to the property |