I am currently working on a Roll back Strategy and this is what I am currently doing.
I am making changes to the migrator tool . First of all I am getting the last migration applied :
var query = "select top 1 MigrationId from __MigrationHistory order by LEFT(MigrationId, 15) desc"; var migrationId = context.Database.SqlQuery<string>(query).FirstOrDefault();
I somehow have to apply this migration if something goes wrong. Something like :
_migrator.RollbackForHost(migrationid);
Can you help me on this ?
var predicate = PredicateBuilder.New<_masterFileAttributeRepository>();
if (!string.IsNullOrWhiteSpace(input.StringValue1))
{
predicate = predicate.And(x => x.StringValue1.Contains(input.StringValue1));
}
if (!string.IsNullOrWhiteSpace(input.StringValue2))
{
predicate = predicate.And(x => x.StringValue2.Contains(input.StringValue2));
}
I am trying like this but x.StringValue1 is throwing error.
Am I doing anything wrong ?
I am trying to use th epredicate builder : <a class="postlink" href="http://www.albahari.com/nutshell/predicatebuilder.aspx">http://www.albahari.com/nutshell/predicatebuilder.aspx</a>
How can I use with Abp ?
The fontawesome.css in content folder was somehow excluded from the porject as a result of which it was not getting published.
Thanks for your help.
If you look at the below image the icons are not loading for the menu and JqTable because the referencing si wrong.
We haven't made any changes any where.
When I use <a class="postlink" href="http://localhost:6240">http://localhost:6240</a> it works but when I host it it <a class="postlink" href="http://x.x.x.x/ABCDEV/">http://x.x.x.x/ABCDEV/</a> the icon doesn't load.
I am having the below issue when I run the MVC code for ASPNET Zero :
#1757@00e46c38-8cc3-4d0f-881e-dbcc386d0552
It works in local host but but it doesn't work when hosted. I used the same database for local host and hosted url as well.
We have more than one record matching the below expression :
await _journalEntryDocumentDetailUnitRepository.DeleteAsync(p => p.AccountingDocumentId == input.Id);
What do you recommend ?
public async Task MyEntrDoc(EntityDto<long> input)
{
MyEntrDoc myentrDoc =
await _myentrDocRepository.GetAsync(input.Id);
await _myentrDocManager.DeleteAsync(input);
await _journalEntryDocumentDetailUnitRepository.DeleteAsync(p => p.AccountingDocumentId == input.Id);
await CurrentUnitOfWork.SaveChangesAsync();
if (myentrDoc.JournalTypeId == JournalType.RecurringEntries ||
myentrDoc.IsRecurringEntry)
{
if (myentrDoc.IsRecurringEntry)
{
if (myentrDoc.OriginalDocumentId != null)
{
var recuingJeParentEntry =
await
_myentrDocRepository.FirstOrDefaultAsync(
myentrDoc.OriginalDocumentId.Value);
if (!ReferenceEquals(recuingJeParentEntry, null) &&
!string.IsNullOrEmpty(recuingJeParentEntry.CronExpression))
{
recuingJeParentEntry.CronExpression = "";
await _myentrDocRepository.UpdateAsync(recuingJeParentEntry);
}
_recurringJobManager.DeleteJob(
$"T{AbpSession.GetTenantId()}RJ{myentrDoc.OriginalDocumentId}");
}
}
else
{
_recurringJobManager.DeleteJob($"T{AbpSession.GetTenantId()}RJ{myentrDoc.Id}");
}
}
}
Hi -
The Delete have become slower after we upgraded from 0.13.0 to 1.4.0 in ABP.
We did the major upgrade a month back and then have been upgrading on a regular basis. But we realized today that the delete have become very slow.
We took the same delete code in both the version : old : 330 ms new : 9s
Did you guys change anything in between these versions ?
Did you get a chance to try ?