rabbal/DNTFrameworkCore

Change Shadow Properties types

mohammad68a opened this issue · 3 comments

Hi, I couldn't change the "CreatorUserId" and "LastModifierUserId" property type from long to int or something else.
please help me.

According to conventions of this infrastructure, it is not possible.

Don't close this issue, please
You can solve this problem, find out and help us. 👏

This feature has been added after redesign.

services.AddEFCore<ProjectDbContext>()
    .WithTrackingHook<long>()
    .WithDeletedEntityHook()
    .WithRowLevelSecurityHook<long>()
    .WithRowIntegrityHook()
    .WithNumberingHook(options =>
    {
        options.NumberedEntityMap[typeof(Task)] = new NumberedEntityOption
        {
            Prefix = "Task",
            FieldNames = new[] {nameof(Task.BranchId)}
        };
    });