Skip to content

Triggers Dependency injection not working #59

@mohammed-yehia-zkaria

Description

@mohammed-yehia-zkaria
            Triggers<ITrackable<User, int>,DDD_Context>.GlobalInserting.Add<IClaimService>(entry =>
            {
                var service = entry.Service;
                entry.Entity.CreatedAt = DateTime.Now;
                entry.Entity.UpdatedAt = DateTime.Now;
                entry.Entity.CreatedById = service.CurrentUser.Id;
                entry.Entity.UpdatedById = service.CurrentUser.Id;
            });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions