U4-8361 - bugfix, get finder to work
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Umbraco.Core.Configuration
|
||||
/// Gets the version comment (like beta or RC).
|
||||
/// </summary>
|
||||
/// <value>The version comment.</value>
|
||||
public static string CurrentComment { get { return ""; } }
|
||||
public static string CurrentComment { get { return "alpha002"; } }
|
||||
|
||||
// Get the version of the umbraco.dll by looking at a class in that dll
|
||||
// Had to do it like this due to medium trust issues, see: http://haacked.com/archive/2010/11/04/assembly-location-and-medium-trust.aspx
|
||||
|
||||
@@ -24,13 +24,14 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenFiveZer
|
||||
.WithColumn("createDateUtc").AsDateTime().NotNullable()
|
||||
.WithColumn("url").AsString(2048).NotNullable();
|
||||
|
||||
Create.PrimaryKey("PK_umbracoRedirectUrl").OnTable("umbracoRedirectUrl").Columns(new[] { "id" });
|
||||
//Create.PrimaryKey("PK_umbracoRedirectUrl").OnTable("umbracoRedirectUrl").Columns(new[] { "id" });
|
||||
|
||||
Create.Index("IX_umbracoRedirectUrl").OnTable("umbracoRedirectUrl")
|
||||
.OnColumn("url")
|
||||
.Ascending()
|
||||
.OnColumn("createDateUtc")
|
||||
.Ascending();
|
||||
.Ascending()
|
||||
.WithOptions().NonClustered();
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Umbraco.Core.Services
|
||||
{
|
||||
void Save(IRedirectUrl redirectUrl);
|
||||
|
||||
void DeleteContentUrls(int contentId);
|
||||
void DeleteContentRedirectUrls(int contentId);
|
||||
|
||||
void Delete(IRedirectUrl redirectUrl);
|
||||
|
||||
@@ -15,12 +15,12 @@ namespace Umbraco.Core.Services
|
||||
|
||||
void DeleteAll();
|
||||
|
||||
IRedirectUrl GetMostRecentRule(string url);
|
||||
IRedirectUrl GetMostRecentRedirectUrl(string url);
|
||||
|
||||
IEnumerable<IRedirectUrl> GetContentUrls(int contentId);
|
||||
IEnumerable<IRedirectUrl> GetContentRedirectUrls(int contentId);
|
||||
|
||||
IEnumerable<IRedirectUrl> GetAllUrls(long pageIndex, int pageSize, out long total);
|
||||
IEnumerable<IRedirectUrl> GetAllRedirectUrls(long pageIndex, int pageSize, out long total);
|
||||
|
||||
IEnumerable<IRedirectUrl> GetAllUrls(int rootContentId, long pageIndex, int pageSize, out long total);
|
||||
IEnumerable<IRedirectUrl> GetAllRedirectUrls(int rootContentId, long pageIndex, int pageSize, out long total);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Umbraco.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public void DeleteContentUrls(int contentId)
|
||||
public void DeleteContentRedirectUrls(int contentId)
|
||||
{
|
||||
using (var uow = UowProvider.GetUnitOfWork())
|
||||
using (var repo = RepositoryFactory.CreateRedirectUrlRepository(uow))
|
||||
@@ -67,7 +67,7 @@ namespace Umbraco.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public IRedirectUrl GetMostRecentRule(string url)
|
||||
public IRedirectUrl GetMostRecentRedirectUrl(string url)
|
||||
{
|
||||
using (var uow = UowProvider.GetUnitOfWork())
|
||||
using (var repo = RepositoryFactory.CreateRedirectUrlRepository(uow))
|
||||
@@ -78,7 +78,7 @@ namespace Umbraco.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<IRedirectUrl> GetContentUrls(int contentId)
|
||||
public IEnumerable<IRedirectUrl> GetContentRedirectUrls(int contentId)
|
||||
{
|
||||
using (var uow = UowProvider.GetUnitOfWork())
|
||||
using (var repo = RepositoryFactory.CreateRedirectUrlRepository(uow))
|
||||
@@ -89,7 +89,7 @@ namespace Umbraco.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<IRedirectUrl> GetAllUrls(long pageIndex, int pageSize, out long total)
|
||||
public IEnumerable<IRedirectUrl> GetAllRedirectUrls(long pageIndex, int pageSize, out long total)
|
||||
{
|
||||
using (var uow = UowProvider.GetUnitOfWork())
|
||||
using (var repo = RepositoryFactory.CreateRedirectUrlRepository(uow))
|
||||
@@ -100,7 +100,7 @@ namespace Umbraco.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<IRedirectUrl> GetAllUrls(int rootContentId, long pageIndex, int pageSize, out long total)
|
||||
public IEnumerable<IRedirectUrl> GetAllRedirectUrls(int rootContentId, long pageIndex, int pageSize, out long total)
|
||||
{
|
||||
using (var uow = UowProvider.GetUnitOfWork())
|
||||
using (var repo = RepositoryFactory.CreateRedirectUrlRepository(uow))
|
||||
|
||||
Reference in New Issue
Block a user