/// <summary> /// Create a new EventType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="createdat">Initial value of the Createdat property.</param> public static EventType CreateEventType(global::System.Int64 id, global::System.String name, global::System.DateTime createdat) { EventType eventType = new EventType(); eventType.Id = id; eventType.Name = name; eventType.Createdat = createdat; return eventType; }
public static EventTypeVM FromDataObject(EventType et) { EventTypeVM retval = null; if (et != null) { retval = new EventTypeVM { Id = et.Id, Name = et.Name, Createdat = et.Createdat, LastUpdated = et.LastUpdated, }; } return retval; }
/// <summary> /// Deprecated Method for adding a new object to the EventTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEventTypes(EventType eventType) { base.AddObject("EventTypes", eventType); }