Example #1
0
 protected Association <TEntity> Associate <TProperty>(
     Expression <Func <TEntity, TProperty> > association)
 {
     return(new Association <TEntity>()
     {
         AssociationProperty = MetadataUtility.PropName(association)
     });
 }
Example #2
0
        protected PropertyService <TEntity> Property <TProp>(Expression <Func <TEntity, TProp> > prop)
        {
            var property = _properties.Find(p => p.Name == MetadataUtility.PropName(prop));

            var propertyService = PropertyService <TEntity> .Create(property);

            return(propertyService);
        }