protected TEntityActionBase () { IdCollection = new Collection<Guid> (); IdDictionary = new Dictionary<Guid, Collection<Guid>> (); Result = TValidationResult.CreateDefault; var categoryType = TCategoryType.Create (TCategory.None); Operation = new TEntityOperation<TCategoryType> (categoryType); SupportAction = TSupportAction.CreateDefault; }
public static bool IsCategory (TCategoryType alias) { return (alias.IsNull () ? false : alias.Equals (alias.Category)); }
public void CopyFrom (TCategoryType alias) { if (alias.NotNull ()) { Category = alias.Category; } }
public void Select (TCategoryType categoryType) { CategoryType.CopyFrom (categoryType); }
public TEntityOperation<TCategoryType> Create (TCategoryType categoryType) { return (new TEntityOperation<TCategoryType> (categoryType)); }