<?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="MyAssembly" namespace="MyAssembly"> <class name="Product" table="Product"> <id name="Id" column="id"> <generator class="native" /> </id> <property name="Created" column="Created" not-null="true" /> <property name="ProductName" formula="(select top 1 p.productname from product p where p.productname='i want to pass a parameter here as dynamic')"/> <property name="IsActive" column="IsActive" not-null="true" /> </class> </hibernate-mapping>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)