public static void CopyPropertiesTo(this ICoreMetadata data, ICoreMetadata copiedTo) { copiedTo.Id = data.Id; copiedTo.Identity = data.Identity; copiedTo.Path = data.Path; copiedTo.Created = data.Created; copiedTo.UserCreated = data.UserCreated; copiedTo.Updated = data.Updated; copiedTo.UserUpdated = data.UserUpdated; }
public static bool HasMetadata(this ICoreMetadata data) { return(data.Identity != Guid.Empty); }