Пример #1
0
        /// <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;
        }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the T_Note EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToT_Note(T_Note t_Note)
 {
     base.AddObject("T_Note", t_Note);
 }
Пример #3
0
 /// <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;
 }
Пример #4
0
        /// <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;
        }