/// <summary> /// Conversion DBO -> Entity /// </summary> public static T_Note ConvertToEntity(DBO.Note note) { T_Note entity = new T_Note(); if (note != null) { entity.idRecette = note.idRecette; entity.idUser = note.idUser; entity.note = note.NoteRecette; } return entity; }
/// <summary> /// Deprecated Method for adding a new object to the T_Note EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToT_Note(T_Note t_Note) { base.AddObject("T_Note", t_Note); }
/// <summary> /// Create a new T_Note object. /// </summary> /// <param name="id">Initial value of the id property.</param> public static T_Note CreateT_Note(global::System.Int64 id) { T_Note t_Note = new T_Note(); t_Note.id = id; return t_Note; }
/// <summary> /// Conversion Entity -> DBO /// </summary> public static DBO.Note ConvertToDBO(T_Note note) { DBO.Note dbo = new DBO.Note(); if (note != null) { dbo.idUser = Convert.ToInt16(note.idUser); dbo.idRecette = Convert.ToInt16(note.idUser); dbo.NoteId = Convert.ToInt16(note.id); dbo.NoteRecette = Convert.ToInt16(note.note); } return dbo; }