I have a domain with a not mapped column. To resolve invalid column name error I used NotColumn attribute in my domain but at runtime, I'm still getting the invalid column error. I think linq2db attributes are ignored by fluent migratory at run time. is there any way I could achieve the same using fluent migratory. PFB my domain and builder class
using Nop.Core;
using LinqToDB.Mapping;
namespace Nop.MyProject.Core.Domain
{
public class MyDomain: BaseEntity
{
public string Name { get; set; }
[NotColumn]
public string ForattedName { get; set; }
}
}
using FluentMigrator.Builders.Create.Table;
using Nop.Data.Mapping.Builders;
using Nop.MyProject.Core.Domain;
namespace Nop.MyProject.Core.Data
{
public class RoleViewBuilder : NopEntityBuilder<MyDomain>
{
public override void MapEntity(CreateTableExpressionBuilder table)
{
table.InSchema("myp"));
}
}
}