send data from C# to clips

Dec 28, 2013 at 9:40 AM
Edited Dec 28, 2013 at 10:10 AM
I am beginner in Clipsnet.... I define my project in C# and my result is in database. now i have to send them to clips to fire rules there and back result to C#. a sample on C# fields and facts in clips:
in C#:
         SqlCommand cmd2 = new SqlCommand("Select * from.....);
         SqlDataReader dr2 = cmd2.ExecuteReader();
            while (dr2.Read())
                float maz_D = float.Parse((dr2["Maz"]).ToString());
                float Kr_D = float.Parse((dr2["Kr"]).ToString());
                float Ttl_D = float.Parse((dr2["Ttl"]).ToString());

in clips:
(deftemplate Ar
   (slot Ar_ID)
   (slot maz)
   (slot kr)
   (slot ttl)
how can i send these fields from C# to clips?
and how can i send result from clips to C#?