using System; using System.Collections.Generic; using System.Linq; using System.Text; using FluentNHibernate.Mapping; using Taloyhtio.GeneralSSO.Server.CodeFiles.Common; using Taloyhtio.GeneralSSO.Server.CodeFiles.Entities; namespace Taloyhtio.GeneralSSO.Server.CodeFiles.Infrastructure.DataAccess.Mappings { public class LogMap : ClassMap { public LogMap() { Table("[Log]"); Id(x => x.Id); Map(x => x.EventType).Length(Constants.DataAccess.Log.EVENT_TYPE_MAX_LEN).Not.Nullable(); Map(x => x.Created).Not.Nullable(); Map(x => x.ThreadId).Not.Nullable(); Map(x => x.Component).Length(Constants.DataAccess.Log.COMPONENT_MAX_LEN).Not.Nullable(); Map(x => x.Message).CustomSqlType("nvarchar(max)").Not.Nullable(); } } }