LoggingRow<TFields> class

namespace: Serenity.Extensions.Entities   assemblySerenity.Extensions

This is a sample base class for rows that does insert/update date and user audit logging automatically. It is recommended to create your own base class, if your auditing field names are different than these. You should implement IInsertLogRow and/or IUpdateLogRow interfaces. ILoggingRow is a combination of these two. There is also an optional IDeleteLogRow interface that supports auditing on delete but for it to work you need to also implement IIsActiveDeletedRow so that your rows aren't actually deleted.

public abstract class LoggingRow<TFields> : Row<TFields>, ILoggingRow
    where TFields : LoggingRowFields

Public Members

name description
InsertDate { get; set; } Gets or sets the date and time the row was inserted.
InsertUserId { get; set; } Gets or sets the ID of the user who inserted the row.
UpdateDate { get; set; } Gets or sets the date and time the row was last updated.
UpdateUserId { get; set; } Gets or sets the ID of the user who last updated the row.

Protected Members

name description
LoggingRow() Creates a new instance of the class.
LoggingRow(…) Creates a new instance of the class with the specified fields.

See Also