Beispiel #1
0
        public TEntity CreateNewEntity(object valueOfKeyProperty)
        {
            if (!string.IsNullOrEmpty(_entityConfig?.KeyPropertyName))
            {
                _patchProperties.Add(_entityConfig.KeyPropertyName, valueOfKeyProperty);
            }

            return(EntityPatcher <TEntity> .Create().BuildNew(_patchProperties, _entityConfig));
        }
Beispiel #2
0
 public TEntity CreateNewEntity()
 {
     return(EntityPatcher <TEntity> .Create().BuildNew(_patchProperties, _entityConfig));
 }
Beispiel #3
0
 public void ApplyTo(TEntity entity)
 {
     EntityPatcher <TEntity> .Create().Patch(entity, _patchProperties, _entityConfig);
 }