/// <summary> /// Sets the field that the relationship link is stored through. /// </summary> /// <param name="field">The field that links the relationship.</param> /// <returns>The relationship builder build the relationship.</returns> public BelongsToRelationshipBuilder <T> BackingField(string field) { var builder = Builder.Field(field).Options(FieldOptions.BackingField); ((RuntimeBelongsToRelationship)Instance).BackingField = builder.Instance; return(this); }
/// <summary> /// Returns a field. /// </summary> /// <param name="name">The name of the field to return.</param> /// <returns>The field builder build the field.</returns> public FieldBuilder <T> Field(string name) { return(Builder.Field(name)); }