예제 #1
0
 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;
 }
예제 #6
0
 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;
 }