public void RegisterMember(EngineTypeMember member)
 {
     if (mRegisteredMembers.Find(x => x.Member == member) != null)
     {
         throw new ArgumentException("Member has already been registered", "member");
     }
     mRegisteredMembers.Add(new EngineConfigurationTypeMember(member));
 }
 public void RegisterMember(EngineTypeMember member)
 {
     if (mRegisteredMembers.Find(x => x.Member == member) != null)
     {
         throw new ArgumentException("Member has already been registered", "member");
     }
     mRegisteredMembers.Add(new EngineConfigurationTypeMember(member));
 }
示例#3
0
        public IEngineConfigurationTypeMemberBuilder <TPoco, TMember> Setup <TMember>(Expression <Func <TPoco, TMember> > expression)
        {
            // Get the member this set up is for
            EngineTypeMember member = ReflectionHelper.GetMember(expression);

            // Create the configuration builder
            var configuration = new EngineConfigurationTypeMemberBuilder <TPoco, TMember>(member, this);

            // Store it in the local list
            this.RegisterTypeMemberProvider(configuration);

            // And return it
            return((IEngineConfigurationTypeMemberBuilder <TPoco, TMember>)configuration);
        }
 public EngineConfigurationTypeMemberBuilder(EngineTypeMember member, EngineConfigurationTypeBuilder parentConfiguration)
 {
     mMember = member;
     mParentConfiguration = parentConfiguration;
 }
 public EngineConfigurationTypeMember(EngineTypeMember member)
 {
     mMember = member;
 }
 public IEngineConfigurationTypeMember GetRegisteredMember(EngineTypeMember member)
 {
     return mRegisteredMembers.Find(x => x.Member == member);
 }
示例#7
0
 public EngineConfigurationTypeMemberBuilder(EngineTypeMember member, EngineConfigurationTypeBuilder <TPoco> parentConfiguration)
     : base(member, parentConfiguration)
 {
     mParentConfiguration = parentConfiguration;
 }
示例#8
0
 public EngineConfigurationTypeMemberBuilder(EngineTypeMember member, EngineConfigurationTypeBuilder parentConfiguration)
 {
     mMember = member;
     mParentConfiguration = parentConfiguration;
 }
 public IEngineConfigurationTypeMember GetRegisteredMember(EngineTypeMember member)
 {
     return(mRegisteredMembers.Find(x => x.Member == member));
 }
示例#10
0
 public EngineConfigurationTypeMember(EngineTypeMember member)
 {
     mMember = member;
 }