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 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); }
public EngineConfigurationTypeMemberBuilder(EngineTypeMember member, EngineConfigurationTypeBuilder <TPoco> parentConfiguration) : base(member, parentConfiguration) { mParentConfiguration = parentConfiguration; }
public IEngineConfigurationTypeMember GetRegisteredMember(EngineTypeMember member) { return(mRegisteredMembers.Find(x => x.Member == member)); }