Updated comments
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0
|
||||
Rename.Table("cmsMedia").To(Constants.DatabaseSchema.Tables.MediaVersion).Do();
|
||||
|
||||
// that is not supported on SqlCE
|
||||
//Rename.Column("versionId").OnTable(ConstantsCore.DatabaseSchema.Tables.MediaVersion).To("id").Do();
|
||||
//Rename.Column("versionId").OnTable(Constants.DatabaseSchema.Tables.MediaVersion).To("id").Do();
|
||||
|
||||
AddColumn<MediaVersionDto>("id", out var sqls);
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ namespace Umbraco.Core.Models
|
||||
private static string SanitizeAlias(string value)
|
||||
{
|
||||
//NOTE: WE are doing this because we don't want to do a ToSafeAlias when the alias is the special case of
|
||||
// being prefixed with ConstantsCore.PropertyEditors.InternalGenericPropertiesPrefix
|
||||
// being prefixed with Constants.PropertyEditors.InternalGenericPropertiesPrefix
|
||||
// which is used internally
|
||||
|
||||
return value.StartsWith(Constants.PropertyEditors.InternalGenericPropertiesPrefix)
|
||||
|
||||
@@ -471,12 +471,12 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
entity.ResetDirtyProperties();
|
||||
|
||||
// troubleshooting
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {ConstantsCore.DatabaseSchema.Tables.DocumentVersion} JOIN {ConstantsCore.DatabaseSchema.Tables.ContentVersion} ON {ConstantsCore.DatabaseSchema.Tables.DocumentVersion}.id={ConstantsCore.DatabaseSchema.Tables.ContentVersion}.id WHERE published=1 AND nodeId=" + content.Id) > 1)
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {Constants.DatabaseSchema.Tables.DocumentVersion} JOIN {Constants.DatabaseSchema.Tables.ContentVersion} ON {Constants.DatabaseSchema.Tables.DocumentVersion}.id={Constants.DatabaseSchema.Tables.ContentVersion}.id WHERE published=1 AND nodeId=" + content.Id) > 1)
|
||||
//{
|
||||
// Debugger.Break();
|
||||
// throw new Exception("oops");
|
||||
//}
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {ConstantsCore.DatabaseSchema.Tables.DocumentVersion} JOIN {ConstantsCore.DatabaseSchema.Tables.ContentVersion} ON {ConstantsCore.DatabaseSchema.Tables.DocumentVersion}.id={ConstantsCore.DatabaseSchema.Tables.ContentVersion}.id WHERE [current]=1 AND nodeId=" + content.Id) > 1)
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {Constants.DatabaseSchema.Tables.DocumentVersion} JOIN {Constants.DatabaseSchema.Tables.ContentVersion} ON {Constants.DatabaseSchema.Tables.DocumentVersion}.id={Constants.DatabaseSchema.Tables.ContentVersion}.id WHERE [current]=1 AND nodeId=" + content.Id) > 1)
|
||||
//{
|
||||
// Debugger.Break();
|
||||
// throw new Exception("oops");
|
||||
@@ -676,12 +676,12 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
entity.ResetDirtyProperties();
|
||||
|
||||
// troubleshooting
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {ConstantsCore.DatabaseSchema.Tables.DocumentVersion} JOIN {ConstantsCore.DatabaseSchema.Tables.ContentVersion} ON {ConstantsCore.DatabaseSchema.Tables.DocumentVersion}.id={ConstantsCore.DatabaseSchema.Tables.ContentVersion}.id WHERE published=1 AND nodeId=" + content.Id) > 1)
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {Constants.DatabaseSchema.Tables.DocumentVersion} JOIN {Constants.DatabaseSchema.Tables.ContentVersion} ON {Constants.DatabaseSchema.Tables.DocumentVersion}.id={Constants.DatabaseSchema.Tables.ContentVersion}.id WHERE published=1 AND nodeId=" + content.Id) > 1)
|
||||
//{
|
||||
// Debugger.Break();
|
||||
// throw new Exception("oops");
|
||||
//}
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {ConstantsCore.DatabaseSchema.Tables.DocumentVersion} JOIN {ConstantsCore.DatabaseSchema.Tables.ContentVersion} ON {ConstantsCore.DatabaseSchema.Tables.DocumentVersion}.id={ConstantsCore.DatabaseSchema.Tables.ContentVersion}.id WHERE [current]=1 AND nodeId=" + content.Id) > 1)
|
||||
//if (Database.ExecuteScalar<int>($"SELECT COUNT(*) FROM {Constants.DatabaseSchema.Tables.DocumentVersion} JOIN {Constants.DatabaseSchema.Tables.ContentVersion} ON {Constants.DatabaseSchema.Tables.DocumentVersion}.id={Constants.DatabaseSchema.Tables.ContentVersion}.id WHERE [current]=1 AND nodeId=" + content.Id) > 1)
|
||||
//{
|
||||
// Debugger.Break();
|
||||
// throw new Exception("oops");
|
||||
|
||||
@@ -423,7 +423,7 @@ namespace Umbraco.Core.Services
|
||||
//IEnumerable<PublishResult> SaveAndPublishBranch(IContent content, bool force,
|
||||
// Func<IContent, HashSet<string>> shouldPublish,
|
||||
// Func<IContent, HashSet<string>, bool> publishCultures,
|
||||
// int userId = ConstantsCore.Security.SuperUserId);
|
||||
// int userId = Constants.Security.SuperUserId);
|
||||
|
||||
/// <summary>
|
||||
/// Unpublishes a document.
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace Umbraco.Core.Services
|
||||
using (var scope = _scopeProvider.CreateScope())
|
||||
{
|
||||
// populate content and media items
|
||||
var types = new[] { ConstantsCore.ObjectTypes.Document, ConstantsCore.ObjectTypes.Media };
|
||||
var types = new[] { Constants.ObjectTypes.Document, Constants.ObjectTypes.Media };
|
||||
var values = scope.Database.Query<TypedIdDto>("SELECT id, uniqueId, nodeObjectType FROM umbracoNode WHERE nodeObjectType IN @types", new { types });
|
||||
foreach (var value in values)
|
||||
{
|
||||
|
||||
@@ -812,12 +812,12 @@ namespace Umbraco.Core.Services.Implement
|
||||
// return;
|
||||
//}
|
||||
|
||||
//uow.WriteLock(ConstantsCore.Locks.MediaTree);
|
||||
//uow.WriteLock(Constants.Locks.MediaTree);
|
||||
//var repository = uow.CreateRepository<IMediaRepository>();
|
||||
//repository.DeleteVersions(id, versionDate);
|
||||
|
||||
//uow.Events.Dispatch(DeletedVersions, this, new DeleteRevisionsEventArgs(id, false, dateToRetain: versionDate));
|
||||
//Audit(uow, AuditType.Delete, "Delete Media by version date, userId, ConstantsCore.System.Root);
|
||||
//Audit(uow, AuditType.Delete, "Delete Media by version date, userId, Constants.System.Root);
|
||||
|
||||
//uow.Complete();
|
||||
}
|
||||
|
||||
@@ -486,14 +486,14 @@ namespace Umbraco.Core.Services.Implement
|
||||
//query =
|
||||
// Query<IMember>.Builder.Where(
|
||||
// x =>
|
||||
// ((Member)x).PropertyTypeAlias == ConstantsCore.Conventions.Member.LastLoginDate &&
|
||||
// ((Member)x).PropertyTypeAlias == Constants.Conventions.Member.LastLoginDate &&
|
||||
// ((Member)x).DateTimePropertyValue > fromDate);
|
||||
//return repository.GetCountByQuery(query);
|
||||
//var fromDate = DateTime.Now.AddMinutes(-Membership.UserIsOnlineTimeWindow);
|
||||
//query =
|
||||
// Query<IMember>.Builder.Where(
|
||||
// x =>
|
||||
// ((Member)x).PropertyTypeAlias == ConstantsCore.Conventions.Member.LastLoginDate &&
|
||||
// ((Member)x).PropertyTypeAlias == Constants.Conventions.Member.LastLoginDate &&
|
||||
// ((Member)x).DateTimePropertyValue > fromDate);
|
||||
//return repository.GetCountByQuery(query);
|
||||
case MemberCountType.LockedOut:
|
||||
|
||||
@@ -1723,9 +1723,9 @@ WHERE cmsContentXml.nodeId IN (
|
||||
// db.Execute(@"DELETE cmsContentXml
|
||||
//FROM cmsContentXml
|
||||
//JOIN umbracoNode ON (cmsContentXml.nodeId=umbracoNode.Id)
|
||||
//JOIN {ConstantsCore.DatabaseSchema.Tables.Content} ON (cmsContentXml.nodeId={ConstantsCore.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//JOIN {Constants.DatabaseSchema.Tables.Content} ON (cmsContentXml.nodeId={Constants.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//WHERE umbracoNode.nodeObjectType=@objType
|
||||
//AND {ConstantsCore.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
//AND {Constants.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
db.Execute($@"DELETE FROM cmsContentXml
|
||||
WHERE cmsContentXml.nodeId IN (
|
||||
SELECT id FROM umbracoNode
|
||||
@@ -1794,9 +1794,9 @@ WHERE cmsPreviewXml.nodeId IN (
|
||||
// db.Execute(@"DELETE cmsPreviewXml
|
||||
//FROM cmsPreviewXml
|
||||
//JOIN umbracoNode ON (cmsPreviewXml.nodeId=umbracoNode.Id)
|
||||
//JOIN {ConstantsCore.DatabaseSchema.Tables.Content} ON (cmsPreviewXml.nodeId={ConstantsCore.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//JOIN {Constants.DatabaseSchema.Tables.Content} ON (cmsPreviewXml.nodeId={Constants.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//WHERE umbracoNode.nodeObjectType=@objType
|
||||
//AND {ConstantsCore.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
//AND {Constants.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
db.Execute($@"DELETE FROM cmsPreviewXml
|
||||
WHERE cmsPreviewXml.nodeId IN (
|
||||
SELECT id FROM umbracoNode
|
||||
@@ -1817,7 +1817,7 @@ WHERE cmsPreviewXml.nodeId IN (
|
||||
long total;
|
||||
do
|
||||
{
|
||||
// .GetPagedResultsByQuery implicitly adds ({ConstantsCore.DatabaseSchema.Tables.Document}.newest = 1) which
|
||||
// .GetPagedResultsByQuery implicitly adds ({Constants.DatabaseSchema.Tables.Document}.newest = 1) which
|
||||
// is what we want for preview (ie latest version of a content, published or not)
|
||||
var descendants = _documentRepository.GetPage(query, pageIndex++, groupSize, out total, null, Ordering.By("Path"));
|
||||
const bool published = true; // previewXml contains edit content!
|
||||
@@ -1869,9 +1869,9 @@ WHERE cmsContentXml.nodeId IN (
|
||||
// db.Execute(@"DELETE cmsContentXml
|
||||
//FROM cmsContentXml
|
||||
//JOIN umbracoNode ON (cmsContentXml.nodeId=umbracoNode.Id)
|
||||
//JOIN {ConstantsCore.DatabaseSchema.Tables.Content} ON (cmsContentXml.nodeId={ConstantsCore.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//JOIN {Constants.DatabaseSchema.Tables.Content} ON (cmsContentXml.nodeId={Constants.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//WHERE umbracoNode.nodeObjectType=@objType
|
||||
//AND {ConstantsCore.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
//AND {Constants.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
db.Execute($@"DELETE FROM cmsContentXml
|
||||
WHERE cmsContentXml.nodeId IN (
|
||||
SELECT id FROM umbracoNode
|
||||
@@ -1938,9 +1938,9 @@ WHERE cmsContentXml.nodeId IN (
|
||||
// db.Execute(@"DELETE cmsContentXml
|
||||
//FROM cmsContentXml
|
||||
//JOIN umbracoNode ON (cmsContentXml.nodeId=umbracoNode.Id)
|
||||
//JOIN {ConstantsCore.DatabaseSchema.Tables.Content} ON (cmsContentXml.nodeId={ConstantsCore.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//JOIN {Constants.DatabaseSchema.Tables.Content} ON (cmsContentXml.nodeId={Constants.DatabaseSchema.Tables.Content}.nodeId)
|
||||
//WHERE umbracoNode.nodeObjectType=@objType
|
||||
//AND {ConstantsCore.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
//AND {Constants.DatabaseSchema.Tables.Content}.contentTypeId IN (@ctypes)",
|
||||
db.Execute($@"DELETE FROM cmsContentXml
|
||||
WHERE cmsContentXml.nodeId IN (
|
||||
SELECT id FROM umbracoNode
|
||||
|
||||
@@ -28,11 +28,11 @@
|
||||
// using (var scope = ScopeProvider.CreateScope())
|
||||
// {
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} ON ", SqlSyntax.GetQuotedTableName("umbracoNode"))));
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 55554, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,55554", SortOrder = 1, UniqueId = new Guid("87D1EAB6-AB27-4852-B3DF-DE8DBA4A1AA0"), Text = "Template 1", NodeObjectType = ConstantsCore.ObjectTypes.Template, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 55555, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,55555", SortOrder = 1, UniqueId = new Guid("3390BDF4-C974-4211-AA95-3812A8CE7C46"), Text = "Template 2", NodeObjectType = ConstantsCore.ObjectTypes.Template, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99997, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99997", SortOrder = 0, UniqueId = new Guid("BB3241D5-6842-4EFA-A82A-5F56885CF528"), Text = "Test Content Type 1", NodeObjectType = ConstantsCore.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99998, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99998", SortOrder = 0, UniqueId = new Guid("EEA66B06-302E-49BA-A8B2-EDF07248BC59"), Text = "Test Content Type 2", NodeObjectType = ConstantsCore.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99999, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99999", SortOrder = 0, UniqueId = new Guid("C45CC083-BB27-4C1C-B448-6F703CC9B799"), Text = "Test Content Type 2", NodeObjectType = ConstantsCore.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 55554, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,55554", SortOrder = 1, UniqueId = new Guid("87D1EAB6-AB27-4852-B3DF-DE8DBA4A1AA0"), Text = "Template 1", NodeObjectType = Constants.ObjectTypes.Template, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 55555, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,55555", SortOrder = 1, UniqueId = new Guid("3390BDF4-C974-4211-AA95-3812A8CE7C46"), Text = "Template 2", NodeObjectType = Constants.ObjectTypes.Template, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99997, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99997", SortOrder = 0, UniqueId = new Guid("BB3241D5-6842-4EFA-A82A-5F56885CF528"), Text = "Test Content Type 1", NodeObjectType = Constants.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99998, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99998", SortOrder = 0, UniqueId = new Guid("EEA66B06-302E-49BA-A8B2-EDF07248BC59"), Text = "Test Content Type 2", NodeObjectType = Constants.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99999, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99999", SortOrder = 0, UniqueId = new Guid("C45CC083-BB27-4C1C-B448-6F703CC9B799"), Text = "Test Content Type 2", NodeObjectType = Constants.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} OFF ", SqlSyntax.GetQuotedTableName("umbracoNode"))));
|
||||
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} ON ", SqlSyntax.GetQuotedTableName("cmsTemplate"))));
|
||||
@@ -93,9 +93,9 @@
|
||||
// using (var scope = ScopeProvider.CreateScope())
|
||||
// {
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} ON ", SqlSyntax.GetQuotedTableName("umbracoNode"))));
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99997, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99997", SortOrder = 0, UniqueId = new Guid("BB3241D5-6842-4EFA-A82A-5F56885CF528"), Text = "Test Media Type 1", NodeObjectType = ConstantsCore.ObjectTypes.MediaType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99998, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99998", SortOrder = 0, UniqueId = new Guid("EEA66B06-302E-49BA-A8B2-EDF07248BC59"), Text = "Test Media Type 2", NodeObjectType = ConstantsCore.ObjectTypes.MediaType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99999, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99999", SortOrder = 0, UniqueId = new Guid("C45CC083-BB27-4C1C-B448-6F703CC9B799"), Text = "Test Media Type 2", NodeObjectType = ConstantsCore.ObjectTypes.MediaType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99997, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99997", SortOrder = 0, UniqueId = new Guid("BB3241D5-6842-4EFA-A82A-5F56885CF528"), Text = "Test Media Type 1", NodeObjectType = Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99998, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99998", SortOrder = 0, UniqueId = new Guid("EEA66B06-302E-49BA-A8B2-EDF07248BC59"), Text = "Test Media Type 2", NodeObjectType = Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99999, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99999", SortOrder = 0, UniqueId = new Guid("C45CC083-BB27-4C1C-B448-6F703CC9B799"), Text = "Test Media Type 2", NodeObjectType = Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} OFF ", SqlSyntax.GetQuotedTableName("umbracoNode"))));
|
||||
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} ON ", SqlSyntax.GetQuotedTableName("cmsContentType"))));
|
||||
@@ -145,11 +145,11 @@
|
||||
// using (var scope = ScopeProvider.CreateScope())
|
||||
// {
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} ON ", SqlSyntax.GetQuotedTableName("umbracoNode"))));
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 55555, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,55555", SortOrder = 1, UniqueId = new Guid("3390BDF4-C974-4211-AA95-3812A8CE7C46"), Text = "Test Data Type", NodeObjectType = ConstantsCore.ObjectTypes.DataType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99999, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99999", SortOrder = 0, UniqueId = new Guid("129241F0-D24E-4FC3-92D1-BC2D48B7C431"), Text = "Test Content Type", NodeObjectType = ConstantsCore.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 55555, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,55555", SortOrder = 1, UniqueId = new Guid("3390BDF4-C974-4211-AA95-3812A8CE7C46"), Text = "Test Data Type", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Insert("umbracoNode", "id", false, new NodeDto { NodeId = 99999, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,99999", SortOrder = 0, UniqueId = new Guid("129241F0-D24E-4FC3-92D1-BC2D48B7C431"), Text = "Test Content Type", NodeObjectType = Constants.ObjectTypes.DocumentType, CreateDate = DateTime.Now });
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} OFF ", SqlSyntax.GetQuotedTableName("umbracoNode"))));
|
||||
|
||||
// scope.Database.Insert(ConstantsCore.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 55555, EditorAlias = ConstantsCore.PropertyEditors.Aliases.TextBox, DbType = "Nvarchar" });
|
||||
// scope.Database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 55555, EditorAlias = Constants.PropertyEditors.Aliases.TextBox, DbType = "Nvarchar" });
|
||||
|
||||
// scope.Database.Execute(new Sql(string.Format("SET IDENTITY_INSERT {0} ON ", SqlSyntax.GetQuotedTableName("cmsContentType"))));
|
||||
// scope.Database.Insert("cmsContentType", "pk", false, new ContentTypeDto { PrimaryKey = 88888, NodeId = 99999, Alias = "TestContentType", Icon = "icon-folder", Thumbnail = "folder.png", IsContainer = false, AllowAtRoot = true });
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace Umbraco.Tests.Runtimes
|
||||
}
|
||||
|
||||
//var databaseBuilder = factory.GetInstance<DatabaseBuilder>();
|
||||
//databaseFactory.Configure(DatabaseBuilder.EmbeddedDatabaseConnectionString, ConstantsCore.DbProviderNames.SqlCe);
|
||||
//databaseFactory.Configure(DatabaseBuilder.EmbeddedDatabaseConnectionString, Constants.DbProviderNames.SqlCe);
|
||||
//databaseBuilder.CreateDatabaseSchemaAndData();
|
||||
|
||||
if (!databaseFactory.Configured)
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Umbraco.Tests.Services
|
||||
Logger = UmbracoTestOptions.Logger.Console)]
|
||||
public class ContentServiceTests : TestWithSomeContentBase
|
||||
{
|
||||
// TODO: Add test to verify there is only ONE newest document/content in {ConstantsCore.DatabaseSchema.Tables.Document} table after updating.
|
||||
// TODO: Add test to verify there is only ONE newest document/content in {Constants.DatabaseSchema.Tables.Document} table after updating.
|
||||
// TODO: Add test to delete specific version (with and without deleting prior versions) and versions by date.
|
||||
|
||||
public override void SetUp()
|
||||
|
||||
@@ -208,7 +208,7 @@ namespace Umbraco.Tests.Services
|
||||
// ctBase.AddPropertyType(new PropertyType(dtdYesNo)
|
||||
// {
|
||||
// Name = "Hide From Navigation",
|
||||
// Alias = ConstantsCore.Conventions.Content.NaviHide
|
||||
// Alias = Constants.Conventions.Content.NaviHide
|
||||
// }
|
||||
// /*,"Navigation"*/);
|
||||
// cts.Save(ctBase);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
//{
|
||||
// public char Letter => '7';
|
||||
// public string Alias => "changeDocType";
|
||||
// public string Category => ConstantsCore.Conventions.PermissionCategories.AdministrationCategory;
|
||||
// public string Category => Constants.Conventions.PermissionCategories.AdministrationCategory;
|
||||
// public string Icon => "axis-rotation-2";
|
||||
// public bool ShowInNotifier => true;
|
||||
// public bool CanBePermissionAssigned => true;
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Umbraco.Web.Editors.Binders
|
||||
//{
|
||||
// //if there's a 'Member' type then we should be able to just go get it from the db since it was created with a link
|
||||
// // to our data.
|
||||
// var memberType = ApplicationContext.Services.MemberTypeService.GetMemberType(ConstantsCore.Conventions.MemberTypes.Member);
|
||||
// var memberType = ApplicationContext.Services.MemberTypeService.GetMemberType(Constants.Conventions.MemberTypes.Member);
|
||||
// if (memberType != null)
|
||||
// {
|
||||
// var existing = GetExisting(model.Key);
|
||||
|
||||
@@ -497,7 +497,7 @@ namespace Umbraco.Web.Security
|
||||
//// for a given property.
|
||||
////These are the default built-in MVC template types: “Boolean”, “Decimal”, “EmailAddress”, “HiddenInput”, “HTML”, “Object”, “String”, “Text”, and “Url”
|
||||
//// by default we'll render a text box since we've defined that metadata on the UmbracoProperty.Value property directly.
|
||||
//if (prop.DataTypeId == new Guid(ConstantsCore.PropertyEditors.TrueFalse))
|
||||
//if (prop.DataTypeId == new Guid(Constants.PropertyEditors.TrueFalse))
|
||||
//{
|
||||
// viewProperty.EditorTemplate = "UmbracoBoolean";
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user