public IComplexPropertyBuilder <TProperty, TEntity> WithForeignKey <TForeignKey>(Expression <Func <TEntity, TForeignKey> > foreignKey) { string propertyName = PropertyNameExtractor.Extract(foreignKey); this.WithForeignKey(propertyName); return(this); }
public IPrimitivePropertyBuilder <TProperty> Property <TProperty>(Expression <Func <TEntity, TProperty> > property) { string propertyName = PropertyNameExtractor.Extract(property); IPrimitivePropertyBuilder <TProperty> propertyBuilder = this.Property(propertyName) as IPrimitivePropertyBuilder <TProperty>; return(propertyBuilder); }
public ICollectionPropertyBuilder <TProperty> HasMany <TProperty>(Expression <Func <TEntity, TProperty> > property) { string propertyName = PropertyNameExtractor.Extract(property); ICollectionPropertyBuilder <TProperty> propertyBuilder = this.HasMany(propertyName) as ICollectionPropertyBuilder <TProperty>; return(propertyBuilder); }
public IEntityTypeBuilder <TEntity> Ignore(Expression <Func <TEntity, object> > property) { string propertyName = PropertyNameExtractor.Extract(property); this.Ignore(propertyName); return(this); }
public IComplexPropertyBuilder <TProperty, TEntity> HasOne <TProperty>(Expression <Func <TEntity, TProperty> > property) { string propertyName = PropertyNameExtractor.Extract(property); IComplexPropertyBuilder <TProperty, TEntity> propertyBuilder = this.HasOne(propertyName) as IComplexPropertyBuilder <TProperty, TEntity>; return(propertyBuilder); }