/// <summary>
 /// Add a new trace_xe_event_map within trace_xe_event_map database table
 /// </summary>
 /// <param name="obj">trace_xe_event_map</param>
 /// <returns>key of table</returns>
 public int Add(trace_xe_event_map obj)
 {
     SqlHelper.ExecuteNonQuery(Data.ConnectionString, CommandType.StoredProcedure,"sproc_trace_xe_event_map_Add"
                     ,Data.CreateParameter("trace_event_id", obj.trace_event_id)
                     ,Data.CreateParameter("package_name", obj.package_name)
                     ,Data.CreateParameter("xe_event_name", obj.xe_event_name)
     );
     return 0;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public trace_xe_event_map Populate(IDataReader myReader)
 {
     trace_xe_event_map obj = new trace_xe_event_map();
     obj.trace_event_id = (int) myReader["trace_event_id"];
     obj.package_name = (string) myReader["package_name"];
     obj.xe_event_name = (string) myReader["xe_event_name"];
     return obj;
 }