/// <summary> /// Get_s the type of the context. /// </summary> /// <param name="node">The node.</param> /// <returns>Context type</returns> public static Type Get_ContextType(IRecipientSelectorNode node) { Type result = null; if (node != null && node.ModelClass != null) { /* 11.2.7 */ var replModelNode = (IModelReplicationNode)node.Application.GetNode("Replication"); if (replModelNode != null) { result = typeof(RecipientsContext <>).MakeGenericType(node.ModelClass.TypeInfo.Type); } } return(result); }
/// <summary> /// Get the model class. /// </summary> /// <param name="node">The node.</param> /// <returns>Model class</returns> public static IModelClass Get_ModelClass(IRecipientSelectorNode node) { return(node.Parent.Parent as IModelClass); }