/// <summary>
        /// Create a new useractivity object.
        /// </summary>
        /// <param name="onlineID">Initial value of the OnlineID property.</param>
        public static useractivity Createuseractivity(global::System.Int32 onlineID)
        {
            useractivity useractivity = new useractivity();

            useractivity.OnlineID = onlineID;
            return(useractivity);
        }
 public useractivity modelToEntity(UserActivity uactivity)
 {
     var activity = new useractivity();
     activity.UserID = uactivity.UserID;
     activity.ConnectionID = uactivity.ConnectionID;
     activity.Status = uactivity.Status;
     activity.Avater = uactivity.Avater;
     // msgData.MessageID = msg.MessageID;
     return activity;
 }
 public UserActivity entityToModel(useractivity activity)
 {
     var uactivity = new UserActivity();
     uactivity.OnlineID = activity.OnlineID;
     uactivity.UserID = activity.UserID;
     uactivity.ConnectionID = activity.ConnectionID;
     uactivity.Status = activity.Status;
     uactivity.Avater = activity.Avater;
     return uactivity;
 }
Esempio n. 4
0
        public useractivity modelToEntity(UserActivity uactivity)
        {
            var activity = new useractivity();

            activity.UserID       = uactivity.UserID;
            activity.ConnectionID = uactivity.ConnectionID;
            activity.Status       = uactivity.Status;
            activity.Avater       = uactivity.Avater;
            // msgData.MessageID = msg.MessageID;
            return(activity);
        }
Esempio n. 5
0
        public UserActivity entityToModel(useractivity activity)
        {
            var uactivity = new UserActivity();

            uactivity.OnlineID     = activity.OnlineID;
            uactivity.UserID       = activity.UserID;
            uactivity.ConnectionID = activity.ConnectionID;
            uactivity.Status       = activity.Status;
            uactivity.Avater       = activity.Avater;
            return(uactivity);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the useractivities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTouseractivities(useractivity useractivity)
 {
     base.AddObject("useractivities", useractivity);
 }
 /// <summary>
 /// Create a new useractivity object.
 /// </summary>
 /// <param name="onlineID">Initial value of the OnlineID property.</param>
 public static useractivity Createuseractivity(global::System.Int32 onlineID)
 {
     useractivity useractivity = new useractivity();
     useractivity.OnlineID = onlineID;
     return useractivity;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the useractivities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTouseractivities(useractivity useractivity)
 {
     base.AddObject("useractivities", useractivity);
 }