Hi,           

 

I have a global class that have static members like UserLogonID. I want to
use UserLogonID when I insert a new customer into database. How can I use
this?

 

Global class:

 

public static class Global

{

                public static string UserLogonID = "Admin";

}

 

Customer SqlMap:

 

<insert id="InsertNewCustomer" parameterClass="IMS.Customer">

      INSERT INTO customers

      (first_name, last_name, sex, user_logon_id)

      VALUES

      (#FirstName#, #Last_Name#, #Sex#, #Global.UserLogonID#) <!-- How can I
use this? -->

</insert>

 

I hope to hear from you soon.

 

Cheers,

Samnang

Reply via email to