for solve this problem you can follow one of this approach: 1- Create empty database manually 2- run update-database command in nugget packager
I setup navigation provider constructor like this
public LIMSNavigationProvider(LIMSSession LIMSSession)
{
_LIMSSession = LIMSSession;
}
but SybsystemId always return null?!
I have a Custom session called LIMSSession like this
public class LIMSSession : ITransientDependency
{
public int? SubsystemId
{
get
{
var claimsPrincipal = Thread.CurrentPrincipal as ClaimsPrincipal;
if (claimsPrincipal == null)
{
return null;
}
var emailClaim = claimsPrincipal.Claims.FirstOrDefault(c => c.Type == "SubsystemId");
if (emailClaim == null || string.IsNullOrEmpty(emailClaim.Value))
{
return null;
}
return Convert.ToInt32(emailClaim.Value);
}
}
}
SubsystemId initialized after user select current subsystem (after login page) How I can inject LIMSSession to AbpNavigationProvider?
Does anyone have any idea??
Suppose below app service
public void CreatePerson(CreatePersonInput input)
{
var person = new Person { Name = input.Name, EmailAddress = input.EmailAddress };
if(_personRepository.Any().Count()>10)
throw new UserFriendlyExceptio("some error message");
_personRepository.Insert(person);
}
based on Abp documentation application service is already implement unitOfWork. but when I send two or more request continuously, exception not fire
I checked it in one of the application service's method. It was {Abp.Timing.UnspecifiedClockProvider}. then I try to
Clock.Provider = new UtcClockProvider();
in PreInitialize method of WebModule, EntityFramework and Core module, but nothing happen.
Hi, your question in not directly related to ABP. In entityframework you can write like this:
var res=from p in _tbl1Repo.GetAll()
where (_tbl2Repo.GetAll().Select(k=>k.Id).Contains(p.tbl2Id)==false
select p;
Hi, why all datetime fields in application service methods automatically converted to PersianDateTime and then return to client?
Awesome framework based on .net. ;) :)
Thank you for your response.