Exemplo n.º 1
0
        public void PropNamePassLowerLabel()
        {
            Expression <Func <PersonLikesCandy, object> > expr = (p => p.Label);

            vPropExprResult = WeaverUtil.GetPropertyDbName(expr);

            Assert.AreEqual("label", vPropExprResult, "Incorrect property name.");
        }
Exemplo n.º 2
0
 /*--------------------------------------------------------------------------------------------*/
 public string GetPropertyDbName <T>(Expression <Func <T, object> > pExp) where T : IWeaverElement
 {
     return(WeaverUtil.GetPropertyDbName(pExp));
 }
Exemplo n.º 3
0
 /*--------------------------------------------------------------------------------------------*/
 private void TryPropExpr()
 {
     vPropExprResult = WeaverUtil.GetPropertyDbName(vPropExpr);
 }