コード例 #1
0
        //public SingleRelationshipDefBuilder(Expression<Func<T, TRelatedType>> relationshipExpression)
        //{
        //    SetupDefaultValues(GetPropertyName(relationshipExpression));
        //}

        //public SingleRelationshipDefBuilder(string relationshipName)
        //{
        //    if (string.IsNullOrEmpty(relationshipName)) throw new ArgumentNullException("relationshipName");
        //    SetupDefaultValues(relationshipName);
        //}

        public SingleRelationshipDefBuilder(RelationshipsBuilder <T> relationshipsBuilder, string relationshipName)
        {
            if (string.IsNullOrEmpty(relationshipName))
            {
                throw new ArgumentNullException("relationshipName");
            }
            _relationshipsBuilder = relationshipsBuilder;
            SetupDefaultValues(relationshipName);
        }
コード例 #2
0
 public MultipleRelationshipDefBuilder(RelationshipsBuilder <T> relationshipsBuilder)
 {
     _relationshipsBuilder = relationshipsBuilder;
     //WithRelationshipName(relationshipExpression);
     SetupDefaultValues();
 }
コード例 #3
0
        //public MultipleRelationshipDefBuilder()
        //{
        //    SetupDefaultValues();
        //}

        //public MultipleRelationshipDefBuilder(ClassDefBuilder2<T> classDefBuilder)
        //{
        //    _classDefBuilder = classDefBuilder;
        //    SetupDefaultValues();
        //}

        public MultipleRelationshipDefBuilder(RelationshipsBuilder <T> relationshipsBuilder, string relationshipName)
        {
            _relationshipsBuilder = relationshipsBuilder;
            WithRelationshipName(relationshipName);
            SetupDefaultValues();
        }
コード例 #4
0
 public SingleRelationshipDefBuilder(RelationshipsBuilder <T> relationshipsBuilder, Expression <Func <T, TRelatedType> > relationshipExpression)
 {
     _relationshipsBuilder = relationshipsBuilder;
     SetupDefaultValues(GetPropertyName(relationshipExpression));
 }