Notification FromDataRowToNotification(DataRow row)
        {
            Notification notification = new Notification();

            notification.IdSender = Convert.ToInt32(row["IdSender"]);
            notification.IdReceiver = Convert.ToInt32(row["IdReceiver"]);
            notification.Value = Convert.ToChar(row["Value"]);

            return notification;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the NotificationJeu EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNotificationJeu(Notification notification)
 {
     base.AddObject("NotificationJeu", notification);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new Notification object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="fait">Initial value of the Fait property.</param>
 public static Notification CreateNotification(global::System.Int32 id, global::System.DateTime date, global::System.Boolean fait)
 {
     Notification notification = new Notification();
     notification.ID = id;
     notification.Date = date;
     notification.Fait = fait;
     return notification;
 }