//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); }
public MultipleRelationshipDefBuilder(RelationshipsBuilder <T> relationshipsBuilder) { _relationshipsBuilder = relationshipsBuilder; //WithRelationshipName(relationshipExpression); SetupDefaultValues(); }
//public MultipleRelationshipDefBuilder() //{ // SetupDefaultValues(); //} //public MultipleRelationshipDefBuilder(ClassDefBuilder2<T> classDefBuilder) //{ // _classDefBuilder = classDefBuilder; // SetupDefaultValues(); //} public MultipleRelationshipDefBuilder(RelationshipsBuilder <T> relationshipsBuilder, string relationshipName) { _relationshipsBuilder = relationshipsBuilder; WithRelationshipName(relationshipName); SetupDefaultValues(); }
public SingleRelationshipDefBuilder(RelationshipsBuilder <T> relationshipsBuilder, Expression <Func <T, TRelatedType> > relationshipExpression) { _relationshipsBuilder = relationshipsBuilder; SetupDefaultValues(GetPropertyName(relationshipExpression)); }