Stephan
c6e4e3b3ed
Merge origin/dev-v7-deploy into dev-v8-zbwip
2016-11-04 18:40:42 +01:00
Stephan
b26b415096
Merge origin/dev-v7-deploy into dev-v8-zbwip (builds)
2016-11-03 10:31:44 +01:00
Shannon
dadcbc8b31
U4-9107 Change BulkInsertRecords to use BulkCopy or TableDirect (SQLCE)
2016-10-25 12:29:17 +02:00
Shannon
d99a691bdc
Changes magic strings to constants for database provider types.
2016-08-09 15:36:02 +02:00
Shannon
c1da28dd47
U4-8837 Change paging query for SQL server 2012+ to be more efficient
2016-08-09 15:33:35 +02:00
Claus
7d0c92937a
U4-8754 Single content queries like Get(int id) for content, media and members needs to execute a TOP 1 (or LIMIT 1)
...
updated a bunch of the remaining repositories to also use this pattern where applicable (repos using mappers aren't compatible without more work).
2016-08-02 12:11:35 +02:00
Stephan
2481b77f03
U4-8729 - reviewing PR
2016-07-19 11:28:54 +02:00
Stephan
764f10327e
Merge branch 'peta-poco-issues' of https://github.com/pynej/Umbraco-CMS into temp-u4-8729
2016-07-19 10:57:03 +02:00
Stephan
77c2766d55
Merge branch origin/dev-v7 into dev-v8
2016-07-18 14:42:06 +02:00
Jeremy Pyne
a40f87eb36
Fixed an issues with user generated PetaPoco's would not work if they included schema's.
...
Fixed an issue where strong typed helper methods would not generate valid SQL for column names if the poco didn't explicitly set a [Column(Name="")] attribute. The PetaPoco format allows for this though and will default to the property name. Again this would cause issues for developers trying to use the DatabaseContext.Database class with their own Poco's.
Both the above causes would happen for example if using the PetaPoco T4 templates to automatically generate Poco's.
2016-07-14 17:01:51 -04:00
Shannon
52e2cbab90
updates delete query to work with MySql
2016-07-14 18:00:43 +02:00
Stephan
ddf38407d8
U4-4847 Refactor ContentService ( #1266 )
...
* U4-4748 - refactor Content-, Media- and MemberTypeRepository
* Cleanup Attempt
* Cleanup OperationStatus
* U4-4748 - refactor Content-, Media- and MemberTypeService
* U4-4748 - cleanup locking
* U4-4748 - refactor Content-, Media- and MemberRepository
* U4-4748 - refactor ContentService (in progress)
* U4-4748 - all unit of work must be completed
* U4-4748 - refactor locks, fix tests
* U4-4748 - deal with fixmes
* U4-4748 - lock table migration
* Update UmbracoVersion
* Fix AuthorizeUpgrade
* U4-4748 - cleanup+bugfix lock objects
* U4-4748 - bugfix
* updates a string interpolation
2016-05-18 10:55:19 +02:00
Shannon
2027cd7b07
Merge branch 'dev-v8' into dev-v8-persistclr
...
Conflicts:
src/Umbraco.Core/Persistence/UmbracoDatabase.cs
src/Umbraco.Tests/TestHelpers/BaseDatabaseFactoryTest.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
2016-04-21 12:19:14 +02:00
Shannon
6124126835
Fixes the custom field sorting, no longer has a sub query for order by, now supports both mysql and sqlce, adds a unit test (should add more though)
2016-04-20 15:50:38 +02:00
Shannon
f149ca9c76
Fixes SqlCe and MySQL sorting on custom properties for list view, this also makes the query work much better and there is no longer a requirement for a sub-query in the order by statement.
2016-04-20 12:50:52 +02:00
Stephan
3b612bf346
Core.Persistence - more cleanup
2016-04-14 18:20:07 +02:00
Stephan
aceaf4b15d
Core.Persistence - massive cleanup
2016-04-13 17:33:09 +02:00
Shannon
df016813ea
Merge remote-tracking branch 'origin/dev-v7.5' into dev-v8
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web/Editors/AuthenticationController.cs
src/Umbraco.Web/Editors/BackOfficeController.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
src/umbraco.businesslogic/UmbracoSettings.cs
2016-04-13 16:18:58 +02:00
Shannon
10bb16316d
Updates sorting code to support decimals - need to test on MySql
2016-04-13 14:49:37 +02:00
Stephan
365a01a476
From PetaPoco to NPoco ( #1207 )
...
* NPoco - 2.x (builds)
* NPoco - v3.1 (does not build)
* NPoco - builds
* NPoco - configure database factory (tests fail)
* Pick fix from 7.4
* NPoco - stock v3.1 - sort-of working
* NPoco - fix merge
* Fix Newtonsoft.Json in web.Template.Debug.config
* NPoco - fix SELECT *
* NPoco - fixing repositories
* NPoco - fix EntityRepository
* NPoco - fix EntityRepository
* NPoco - cosmetic
* NPoco - use 3.1.0-u001 from github/zpqrtbnk/NPoco
* Fixes build, NPoco needed to be referenced in the cms and UmbracoExamine projects
* Fixes lots of tests
* fixes more tests
* NPoco - bugfixing
* Bugfix CacheHelper in tests
* Bugfix connection mocking in tests
* NPoco - inject database in Sql.Select<>
* NPoco - discovery retry policy only once
* Enable C# 6 for Umbraco.Core
* NPoco - introduce UmbracoSql, cleanup
* NPoco - more cleanup and fixing
* NPoco - fix UserRepository
* Optimize InGroupsOf
* Implement UmbracoDatabase.FetchByGroups
* NPoco - fix Select
* NPoco - simplify GetPagedResultsByQuery
* Cherry-pick DisableBrowserCacheAttribute fix from 7.4
* Upgrade NPoco to use Sql<TContext>
* U4-8257 - cleanup relators
* 4-8257 - cleanup more relators
* Upgrade NPoco with more OOTB version
* fixes a couple tests, changes double check lock to Lazy<T>
2016-04-12 15:11:07 +02:00
Shannon
90a66aeebd
fixes merge / build
2016-04-05 16:32:46 +02:00
Shannon
c20984dca7
Merge branch 'dev-v7' of https://github.com/aadfPT/Umbraco-CMS into aadfPT-dev-v7
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/IContentService.cs
src/Umbraco.Core/Services/IMediaService.cs
src/Umbraco.Core/Services/IMemberService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js
src/Umbraco.Web.UI.Client/src/common/resources/media.resource.js
src/Umbraco.Web.UI.Client/src/common/resources/member.resource.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
src/Umbraco.Web/Editors/ContentController.cs
src/Umbraco.Web/Editors/MediaController.cs
src/Umbraco.Web/Editors/MemberController.cs
src/Umbraco.Web/WebApi/Filters/DisableBrowserCacheAttribute.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
2016-04-05 16:20:39 +02:00
Shannon
ef3f15ec9b
Merge branch 'u4-6003b' of https://github.com/AndyButland/Umbraco-CMS into AndyButland-u4-6003b
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/IContentService.cs
src/Umbraco.Core/Services/IMediaService.cs
src/Umbraco.Core/Services/IMemberService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html
src/Umbraco.Web/Editors/MemberController.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
2016-04-05 15:31:33 +02:00
André Ferreira
bd2a40d214
U4-6003 List View - Order By Custom Property Fix
...
Original work done on https://github.com/umbraco/Umbraco-CMS/pull/711 but ported to the latest version
Content below for reference
With the current implementation of the list view you can only sort by system columns (Name, SortOrder etc.) and not custom columns you have added to your document types. This PR allows that.
The crux of it is a sub-query added to the ORDER BY clause when we are ordering by a custom field. This looks up the field's value from the most recent content version.
Provided here and not in the previous pull request is:
MySQL support
Have done some performance testing. On a local laptop with 1000 nodes in a list view, it's sorting in around 220-250ms. It's a little slower that sorting on native properties like node name, but still perfectly usable - there's no significant delay you see in use.
Please note also:
GetPagedResultsByQuery() in VersionableRepositoryBase was previously doing an ORDER BY in SQL and then repeating this via LINQ to Objects. I couldn't see that this second ordering was necessary so removed it, but wanted to flag here in case I've missed something around why this was necessary.
The PR also includes small amends to fix or hide sorting on a couple of the default columns for the member amd media list views.
2016-04-01 11:28:51 +01:00
Shannon
d37d31246e
Merge remote-tracking branch 'origin/dev-v7' into dev-v8
...
Conflicts:
src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs
src/Umbraco.Core/Persistence/Querying/BaseExpressionHelper.cs
src/Umbraco.Tests/Persistence/SyntaxProvider/MySqlSyntaxProviderTests.cs
src/Umbraco.Web.UI/umbraco/create/content.ascx
src/Umbraco.Web.UI/umbraco/create/member.ascx
src/Umbraco.Web.UI/umbraco/create/nodeType.ascx
src/Umbraco.Web/PropertyEditors/TrueFalsePropertyEditor.cs
src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
src/Umbraco.Web/Security/Identity/BackOfficeCookieManager.cs
src/Umbraco.Web/Strategies/Migrations/ClearMediaXmlCacheForDeletedItemsAfterUpgrade.cs
src/Umbraco.Web/Strategies/Migrations/PublishAfterUpgradeToVersionSixth.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/WebBootManager.cs
src/Umbraco.Web/umbraco.presentation/umbraco/settings/stylesheet/editstylesheet.aspx.cs
2016-03-16 15:02:53 +01:00
Stephan
f1366c7d29
U4-8017 - fix issues with MySql InitColumnTypeMap
2016-02-19 13:33:11 +01:00
Shannon
4f3968e837
R# cleanup, losts of obsoleted methods removed
2015-12-22 18:00:11 +01:00
Shannon
2ea9418fd7
Merge remote-tracking branch 'origin/7.4.0' into dev-v8
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/ApplicationContext.cs
src/Umbraco.Core/Configuration/UmbracoConfig.cs
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Core/CoreBootManager.cs
src/Umbraco.Core/DatabaseContext.cs
src/Umbraco.Core/Dictionary/CultureDictionaryFactoryResolver.cs
src/Umbraco.Core/Manifest/ManifestParser.cs
src/Umbraco.Core/Models/DataTypeDefinition.cs
src/Umbraco.Core/ObjectResolution/ApplicationEventsResolver.cs
src/Umbraco.Core/Persistence/DatabaseSchemaHelper.cs
src/Umbraco.Core/Persistence/Factories/MemberTypeFactory.cs
src/Umbraco.Core/Persistence/Migrations/MigrationBase.cs
src/Umbraco.Core/Persistence/Migrations/MigrationExpressionBase.cs
src/Umbraco.Core/Persistence/Migrations/MigrationResolver.cs
src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Alter/AlterSyntaxBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Alter/Column/AlterColumnBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Alter/Expressions/AlterColumnExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Alter/Expressions/AlterDefaultConstraintExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Alter/Expressions/AlterTableExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Alter/Table/AlterTableBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Create/Column/CreateColumnBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Create/CreateBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Create/Expressions/CreateConstraintExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Create/Expressions/CreateTableExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Create/Table/CreateTableBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/DeleteBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/Expressions/DeleteColumnExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/Expressions/DeleteConstraintExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/Expressions/DeleteDataExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/Expressions/DeleteDefaultConstraintExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/Expressions/DeleteForeignKeyExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/Expressions/DeleteIndexExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Delete/Expressions/DeleteTableExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Execute/ExecuteBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Execute/Expressions/ExecuteCodeStatementExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Execute/Expressions/ExecuteSqlStatementExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Expressions/CreateColumnExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Expressions/CreateForeignKeyExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Expressions/CreateIndexExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Insert/Expressions/InsertDataExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Insert/InsertBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Rename/Expressions/RenameColumnExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Rename/Expressions/RenameTableExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Rename/RenameBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Update/Expressions/UpdateDataExpression.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Update/UpdateBuilder.cs
src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSeven/AddIndexToCmsMacroTable.cs
src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenThreeZero/MigrateAndRemoveTemplateMasterColumn.cs
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/ContentTypeBaseRepository.cs
src/Umbraco.Core/Persistence/Repositories/ContentTypeRepository.cs
src/Umbraco.Core/Persistence/Repositories/DataTypeDefinitionRepository.cs
src/Umbraco.Core/Persistence/Repositories/DictionaryRepository.cs
src/Umbraco.Core/Persistence/Repositories/DomainRepository.cs
src/Umbraco.Core/Persistence/Repositories/LanguageRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaTypeRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberTypeRepository.cs
src/Umbraco.Core/Persistence/Repositories/RecycleBinRepository.cs
src/Umbraco.Core/Persistence/Repositories/ServerRegistrationRepository.cs
src/Umbraco.Core/Persistence/Repositories/TagRepository.cs
src/Umbraco.Core/Persistence/Repositories/TemplateRepository.cs
src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs
src/Umbraco.Core/Persistence/RepositoryFactory.cs
src/Umbraco.Core/Persistence/UmbracoDatabase.cs
src/Umbraco.Core/PropertyEditors/IPropertyEditorValueConverter.cs
src/Umbraco.Core/PropertyEditors/PropertyEditor.cs
src/Umbraco.Core/PropertyEditors/PropertyEditorResolver.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/ContentTypeService.cs
src/Umbraco.Core/Services/DataTypeService.cs
src/Umbraco.Core/Services/EntityService.cs
src/Umbraco.Core/Services/LocalizationService.cs
src/Umbraco.Core/Services/MacroService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberGroupService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Core/Services/MemberTypeService.cs
src/Umbraco.Core/Services/PackagingService.cs
src/Umbraco.Core/Services/ServerRegistrationService.cs
src/Umbraco.Core/Services/ServiceContext.cs
src/Umbraco.Core/Services/TagService.cs
src/Umbraco.Core/Services/UserService.cs
src/Umbraco.Core/Strings/DefaultShortStringHelper.cs
src/Umbraco.Core/Sync/ConfigServerRegistrar.cs
src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Core/UmbracoApplicationBase.cs
src/Umbraco.Core/packages.config
src/Umbraco.Tests/BootManagers/CoreBootManagerTests.cs
src/Umbraco.Tests/Macros/MacroTests.cs
src/Umbraco.Tests/Manifest/ManifestParserTests.cs
src/Umbraco.Tests/Migrations/FindingMigrationsTest.cs
src/Umbraco.Tests/Migrations/MigrationRunnerTests.cs
src/Umbraco.Tests/Migrations/Stubs/FiveZeroMigration.cs
src/Umbraco.Tests/Migrations/Stubs/FourElevenMigration.cs
src/Umbraco.Tests/Migrations/Stubs/SixZeroMigration1.cs
src/Umbraco.Tests/Migrations/Stubs/SixZeroMigration2.cs
src/Umbraco.Tests/Migrations/TargetVersionSixthMigrationsTest.cs
src/Umbraco.Tests/Migrations/Upgrades/BaseUpgradeTest.cs
src/Umbraco.Tests/Migrations/Upgrades/SqlCeDataUpgradeTest.cs
src/Umbraco.Tests/Mvc/UmbracoViewPageTests.cs
src/Umbraco.Tests/Persistence/BaseTableByTableTest.cs
src/Umbraco.Tests/Persistence/DatabaseContextTests.cs
src/Umbraco.Tests/Persistence/Mappers/PropertyGroupMapperTest.cs
src/Umbraco.Tests/Persistence/MySqlDatabaseCreationTest.cs
src/Umbraco.Tests/Persistence/Querying/ContentTypeRepositorySqlClausesTest.cs
src/Umbraco.Tests/Persistence/Querying/ContentTypeSqlMappingTests.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/DomainRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/ServerRegistrationRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/TemplateRepositoryTest.cs
src/Umbraco.Tests/Persistence/SyntaxProvider/SqlCeSyntaxProviderTests.cs
src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs
src/Umbraco.Tests/Services/ContentServicePerformanceTest.cs
src/Umbraco.Tests/Services/ContentServiceTests.cs
src/Umbraco.Tests/Services/ThreadSafetyServiceTest.cs
src/Umbraco.Tests/Strings/DefaultShortStringHelperTests.cs
src/Umbraco.Tests/TestHelpers/BaseDatabaseFactoryTest.cs
src/Umbraco.Tests/TestHelpers/BaseDatabaseTest.cs
src/Umbraco.Tests/TestHelpers/BaseUmbracoApplicationTest.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/config/ClientDependency.config
src/Umbraco.Web.UI/packages.config
src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx.cs
src/Umbraco.Web.UI/umbraco/plugins/tinymce3/insertImage.aspx
src/Umbraco.Web.UI/umbraco/settings/EditNodeTypeNew.aspx.cs
src/Umbraco.Web/BatchedDatabaseServerMessenger.cs
src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs
src/Umbraco.Web/Cache/DataTypeCacheRefresher.cs
src/Umbraco.Web/Cache/DistributedCacheExtensions.cs
src/Umbraco.Web/Editors/AuthenticationController.cs
src/Umbraco.Web/Editors/BackOfficeController.cs
src/Umbraco.Web/Install/InstallSteps/DatabaseInstallStep.cs
src/Umbraco.Web/Install/InstallSteps/DatabaseUpgradeStep.cs
src/Umbraco.Web/Media/ThumbnailProviders/ThumbnailProvidersResolver.cs
src/Umbraco.Web/Mvc/DefaultRenderMvcControllerResolver.cs
src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs
src/Umbraco.Web/PropertyEditors/FolderBrowserPropertyEditor.cs
src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
src/Umbraco.Web/PropertyEditors/ImageCropperPropertyEditor.cs
src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
src/Umbraco.Web/Trees/MediaTreeController.cs
src/Umbraco.Web/Trees/MemberTreeController.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/UmbracoApplication.cs
src/Umbraco.Web/UmbracoModule.cs
src/Umbraco.Web/WebBootManager.cs
src/Umbraco.Web/packages.config
src/Umbraco.Web/umbraco.presentation/content.cs
src/Umbraco.Web/umbraco.presentation/keepAliveService.cs
src/Umbraco.Web/umbraco.presentation/macro.cs
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadDictionary.cs
src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentControl.cs
src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/controls/Images/ImageViewer.ascx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/controls/Images/UploadMediaImage.ascx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/imageViewer.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/rollBack.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/members/EditMemberType.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/plugins/tinymce3/insertImage.aspx
src/Umbraco.Web/umbraco.presentation/umbraco/settings/EditNodeTypeNew.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/uQuery/MediaExtensions.cs
src/Umbraco.Web/umbraco.presentation/umbraco/uQuery/uQuery.cs
src/Umbraco.Web/umbraco.presentation/umbraco/users/EditUser.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/webService.asmx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/webservices/MediaUploader.ashx.cs
src/UmbracoExamine/UmbracoContentIndexer.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
src/umbraco.MacroEngines/RazorCore/UmbracoCultureDictionary.cs
src/umbraco.MacroEngines/RazorDynamicNode/DynamicNode.cs
src/umbraco.MacroEngines/RazorDynamicNode/ExtensionMethods.cs
src/umbraco.MacroEngines/app.config
src/umbraco.MacroEngines/packages.config
src/umbraco.MacroEngines/umbraco.MacroEngines.csproj
src/umbraco.businesslogic/UmbracoSettings.cs
src/umbraco.cms/businesslogic/Content.cs
src/umbraco.cms/businesslogic/datatype/DataTypeDefinition.cs
src/umbraco.cms/businesslogic/datatype/DefaultPreValueEditor.cs
src/umbraco.cms/businesslogic/datatype/FileHandlerData.cs
src/umbraco.cms/businesslogic/translation/Translation.cs
src/umbraco.cms/businesslogic/web/Document.cs
src/umbraco.cms/packages.config
src/umbraco.editorControls/DefaultPrevalueEditor.cs
src/umbraco.editorControls/MultiNodeTreePicker/MNTPResources.Designer.cs
src/umbraco.editorControls/MultiNodeTreePicker/MNTPResources.resx
src/umbraco.editorControls/MultiNodeTreePicker/MNTP_DataType.cs
src/umbraco.editorControls/app.config
src/umbraco.editorControls/macrocontainer/PrevalueEditor.cs
src/umbraco.editorControls/packages.config
src/umbraco.editorControls/textfieldmultiple/textfieldMultipleDataType.cs
src/umbraco.editorControls/umbraco.editorControls.csproj
src/umbraco.editorControls/uploadfield/uploadField.cs
src/umbraco.editorControls/userControlWrapper/usercontrolPrevalueEditor.cs
src/umbraco.providers/app.config
2015-12-18 11:23:58 +01:00
Shannon
327a00aaf4
Fixes issue with migrations running with a Decimal column:
...
The logic would produce incorrect syntax.
Fixed the default string column for sql server, made them all consistent.
Moved ctor logic for shared sql syntax providers to the base class.
Created formatted Decimal column definitions so that a custom precision/scale works.
Set the migration to use the default precision/scale values.
Removes the pattern validators because they don't do anything... due to the fix-number directive which has it's own issues but we won't solve those now.
2015-10-14 12:07:50 +02:00
Stephan
583ae2df11
Bugfix
2015-09-15 10:52:32 +02:00
Stephan
14cd1e7a76
Bugfix SqlSyntaxProvider date formatting
2015-09-15 10:49:41 +02:00
Shannon
8d24ac3651
Oops, fixes PK creation logic for MySQL (had the wrong boolean)
2015-09-14 10:33:37 +02:00
Shannon
7beb21ad66
Fixes upgrade issues with MySql, along with a few other things:
...
* All usages of getdate() are changed to the system value
* All usages of newid() are chagned to the system value
* Removes the hacks associated with the above
* Fixes the fluent migrations for table creation for mysql to not double create a PK
* Removes other system field values that actually don't do anthing and shouldn't be used
2015-09-11 17:49:47 +02:00
Shannon
488ba05eda
Fixes upgrade issues with SQLCE and DateTime:
...
* DateTime's during migrations are formatted in a very explicit way
* Migration's that need to execute multiple statements are fixed in SQLCE by splitting on GO
2015-09-11 13:55:13 +02:00
Shannon
4bb89c1827
Fixes: U4-7090 Upgrade error with dates
2015-09-11 11:49:37 +02:00
AndyButland
a1ae0f70bb
Moved custom column list view order by sql variations into syntax providers
2015-06-12 09:15:36 +02:00
Shannon
905e58e3b6
Completes: U4-6104 Remove SqlSyntaxContext - quite a large refactor and cleanup since the SqlSyntaxContext was used everywhere :( haven't run tests, etc... yet but the project builds now.
2015-02-22 21:36:02 +01:00
Shannon
cc396c8b96
Removes more unecessary singletons and simplifies/refactors some internal parts like the ctors for the ServiceContext, DatabaseContext. No more RepositoryResolver or SqlSyntaxProvidersResolver these are entirely uncessary and complicate things.
2015-01-13 18:19:52 +11:00
Shannon
e3acdbe85b
Fixes up dictionary and language repositories to have underlying simple get repositories since they support getting by id, unique id and string variations but we want to have native repository enabled caching for these items so these get methods now use private repositories based on these keys. Adds more tests, removes N+1 queries for languages and dictionary items. Removes RuntimeCacheProvider, we only want one type of cache, this simplifies things a lot.
2015-01-13 13:25:36 +11:00
Shannon
fafe056db0
More refactoring with ILogger and reducing the dependencies on all of these singletons. Created new DatabaseSchemaHelper to be used instead of the extension methods that require singletons to be set.
2015-01-09 13:00:26 +11:00
Shannon
9f30a9b0fc
Removes more singletons and reliance on singletons/statics
2015-01-09 12:04:33 +11:00
Shannon
7b99efb061
Working on: U4-4133 Database key changes are not fixed in the Umbraco 7 installer!
2014-10-16 11:24:29 +10:00
Shannon
893855f8bd
More tests fixed
2014-09-24 20:20:27 +10:00
Shannon
afacdc12ad
More work on parameterized queries, all tests for repos passing now.
2014-09-24 16:59:45 +10:00
Shannon
00f86ffef7
More work on sql parameterization with sql expressions, lots of tests passing but a few fixes still required. Streamlines IQuery to actually have the correct method implementations so we're not casting everywhere.
2014-09-24 13:51:16 +10:00
Shannon
64c126ea61
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
...
Conflicts:
src/Umbraco.Core/Configuration/GlobalSettings.cs
src/Umbraco.Core/Persistence/Migrations/Initial/DatabaseSchemaResult.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Web/Security/Providers/UsersMembershipProvider.cs
src/umbraco.providers/members/UmbracoMembershipProvider.cs
2014-03-14 19:33:53 +11:00
Shannon
e1a134f587
Fixes: U4-4430 MySql primary key issues
2014-03-14 17:11:21 +11:00
Shannon
e8056de589
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
...
Conflicts:
src/Umbraco.Core/Persistence/Migrations/Initial/DatabaseSchemaResult.cs
src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs
src/Umbraco.Web.UI/install/Default.aspx.cs
2014-03-14 13:06:45 +11:00
Shannon
bbe6194b06
Exception is thrown if trying to run mysql in med trust. Migrations arranged to execute schema migrations first and then data migrations. If a schema migration fails it will attempt to run the downgrade scripts of the migrations if running mysql since schema changes aren't supported in transactions. Updated all sql syntax providers to try to return only the column indexes, not key indexes. Updates the db version checker to include errors for all missing columns, indexes and constraints in the db and vice versa in the schema.
2014-03-14 13:04:20 +11:00
Shannon
6990c46262
Fixes installer when it fails on the db install or upgrades, fixes some upgrade queries with mysql, fixes ignoring case check for checking version
2014-03-13 21:47:08 +11:00