Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

DDS: Remap store does not update DatabaseDatetimeKind

Fixed in

EPiServer.CMS.Core 10.5.0

(Or a related package)

Created

Feb 24, 2017

Updated

Mar 15, 2017

Area

CMS Core

State

Closed, Fixed and tested


Description

I tried to update the property DatabaseDateTimeKind of an existing store by:
set
storeParams.DatabaseDateTimeKind = DatabaseDateTimeKind.Utc;
then remap store and commit change
storeDefinition.Remap(typesBag, storeParams);
storeDefinition.CommitChanges();

But after calling the CreateStore method, I get a store with storeDefinition.DatabaseDateTimeKind as Unspecified.
I can set DatabaseDateTimeKind after remapping the store as follows:

storeDefinition.Remap(typesBag, storeParams);
if (storeParams.DatabaseDateTimeKind.HasValue)
{ storeDefinition.DatabaseDateTimeKind = storeParams.DatabaseDateTimeKind.Value; }
storeDefinition.CommitChanges();