Hi,
This seems like a Visual Studio problem. Maybe cleaning your solution or deleting nuget packages from d:\abp\src\packages folder (don't delete packages.config :)), and a rebuild might solve the problem.
Hi,
ABP actually calls CheckModelState before calling the action method of controller by default. You can add [DisableValidation] attribute to your controller or action method, if you want to do validation manually.
You can also disable validation for all MVC controllers like this in PreInitialize of your web module.
Configuration.Modules.AbpMvc().IsValidationEnabledForControllers = false;
Hi,
Sorry I couldn't came up with an idea about your problem. If you can share your project, I can take a look on it.
Hi,
You can create a custom AuthorizeFilter for MVC or WebAPI and check the request here in that. Please see this issue <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1256">https://github.com/aspnetboilerplate/as ... ssues/1256</a>
Hi,
Have you seen this sample ? <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/ConsoleRemoteWebApiCall">https://github.com/aspnetboilerplate/as ... WebApiCall</a>
It might work for you.
Hi,
Most of the entities come from Abp.Zero package implements ISoftDelete. When an entity implements ISoftDelete ABP does not delete it from database by default. You can see it here <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/d4c7fe14b8905efa9f9846f338c659a970e157e9/src/Abp.EntityFramework/EntityFramework/AbpDbContext.cs#L428">https://github.com/aspnetboilerplate/as ... xt.cs#L428</a>.
So, in order to do what you are asking you have two options. 1 ) Delete implementation of ISoftDelete in Abp.Zero entities. But you cannot do it because you have a dll reference to it. You can create a local copy of it and change the code but I dont suggest that. You cannot update ABP in the future.
protected override void CancelDeletionForSoftDelete(DbEntityEntry entry)
{
}
In this way, all entities will be deleted from database. But you will have IsDeleted column in some entities. In order to delete IsDeleted columns, you can override IsDeleted field in the entities you want like this.
[NotMapped]
public override bool IsDeleted { get; set; }
Then generate code first migration and update your database. But dont forget, you still have to override CancelDeletionForSoftDelete in this case because ABP does not check IsDeleted column it checks if entity implements ISoftDelete here <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/d4c7fe14b8905efa9f9846f338c659a970e157e9/src/Abp.EntityFramework/EntityFramework/AbpDbContext.cs#L428">https://github.com/aspnetboilerplate/as ... xt.cs#L428</a>
Hi,
methods on the client side starts with lower case letters. I think you should call your method as "lotService.getPayment"
Hi,
You just need to set tenantId of your current unitOfWork. ABP handles the rest. See the section "Switching Between Host and Tenants" of this document <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy">http://aspnetboilerplate.com/Pages/Docu ... ti-Tenancy</a>.
Hi,
Please see this forup topic #1262@bdddb0a5-7f84-448e-a584-a913d1424ad1
You can override CancelDeletionForSoftDelete method in your DbContext as halil offered.
Hi,
You can do it in two ways,
1 ) Include CreatoruUser to your query
var articles = _articleRepository
.GetAll()
.Include(e => e.CreatorUser)
.OrderByDescending(a => a.ViewCount)
.Take(howMany)
.ToList();
Then map result of this query to your Dto.
var articles = (from article in _articleRepository.GetAll()
join creatorUser in _userRepository.GetAll() on article.CreatorUserId equals creatorUser.Id
orderby NameOfField
select new NameOfYourDto
{
CreatorUserName = creatorUser.UserName,
SomeField = article.SomeField,
...
}).Take(howMany);