public IComplexPropertyBuilder <TProperty, TEntity> WithForeignKey <TForeignKey>(Expression <Func <TEntity, TForeignKey> > foreignKey)
        {
            string propertyName = PropertyNameExtractor.Extract(foreignKey);

            this.WithForeignKey(propertyName);
            return(this);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public IEntityTypeBuilder <TEntity> Ignore(Expression <Func <TEntity, object> > property)
        {
            string propertyName = PropertyNameExtractor.Extract(property);

            this.Ignore(propertyName);
            return(this);
        }
Esempio n. 5
0
        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);
        }