Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
649 B

// ==========================================================================
// CommandingExtensions.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using System;
namespace Squidex.Infrastructure.CQRS.Commands
{
public static class CommandingExtensions
{
public static T CreateNew<T>(this IDomainObjectFactory factory, Guid id) where T : IAggregate
{
return (T)factory.CreateNew(typeof(T), id);
}
}
}