Esempio n. 1
0
        public void AddProductProperty <T>(T entity)
        {
            string modelname   = entity.GetType().Name;
            string columnValue = "Value";
            string value       = CoverObjectUtility.GetPropertyValue(columnValue, entity).ToString();
            Guid   productId   = Guid.Parse(CoverObjectUtility.GetPropertyValue("ProductId", entity).ToString());
            string insert      = string.Empty;

            insert = string.Format("insert into {0}(Value,ProductId) values ('{1}','{2}')", modelname, value, productId);
            Connection.Execute(insert, transaction: Transaction);
        }