Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 public static bool IsCategory (TCategoryType alias)
 {
   return (alias.IsNull () ? false : alias.Equals (alias.Category));
 }
Exemplo n.º 3
0
 public void CopyFrom (TCategoryType alias)
 {
   if (alias.NotNull ()) {
     Category = alias.Category;
   }
 }
Exemplo n.º 4
0
 public void Select (TCategoryType categoryType)
 {
   CategoryType.CopyFrom (categoryType);
 }
Exemplo n.º 5
0
 public TEntityOperation<TCategoryType> Create (TCategoryType categoryType)
 {
   return (new TEntityOperation<TCategoryType> (categoryType));
 }