示例#1
0
        private IEnumerable <EntityGroupIn> GetHandlerInputs()
        {
            bool hasMappings = false;
            var  meta        = Meta;

            if (meta != null)
            {
                foreach (var item in Meta.GetAllMembers())
                {
                    if (!item.HasAttribute <uFrameEventMapping>())
                    {
                        continue;
                    }


                    var variableIn = new HandlerIn()
                    {
                        Repository     = Repository,
                        EventFieldInfo = item,
                        Node           = this,
                        Identifier     = this.Identifier + ":" + item.MemberName,
                    };
                    yield return(variableIn);

                    //if (item.MemberName != "EntityId")
                    hasMappings = true;
                }
            }
            if (!hasMappings)
            {
                yield return(EntityGroup);
            }
        }
示例#2
0
 public virtual void BeforeVisitHandlerIn(HandlerIn handlerIn)
 {
 }
示例#3
0
 public virtual void VisitHandlerIn(HandlerIn handlerIn)
 {
 }