public TIMS_ProjectInterfacePointFieldEntryViewModel(TIMS_ProjectInterfacePointFieldEntry m, bool convertSubs = false)
 {
     if (m != null)
     {
         this.ID = m.ID;
         this.InterfacePointWorkflowID = m.InterfacePointWorkflowID;
         this.InterfaceTypeFieldID     = m.InterfaceTypeFieldID;
         this.Value = m.Value;
         this.TIMS_ProjectDisciplineInterfaceTypeField = convertSubs ? new TIMS_ProjectDisciplineInterfaceTypeFieldViewModel(m.TIMS_ProjectDisciplineInterfaceTypeField) : null;
         this.TIMS_ProjectInterfacePointWorkflow       = convertSubs ? new TIMS_ProjectInterfacePointWorkflowViewModel(m.TIMS_ProjectInterfacePointWorkflow) : null;
     }
 }
        public override BaseViewModel <TIMS_ProjectInterfacePointFieldEntry> FromModel <M>(M mo, bool convertSubs)
        {
            var m = mo as TIMS_ProjectInterfacePointFieldEntry;

            if (m != null)
            {
                this.ID = m.ID;
                this.InterfacePointWorkflowID = m.InterfacePointWorkflowID;
                this.InterfaceTypeFieldID     = m.InterfaceTypeFieldID;
                this.Value = m.Value;
                this.TIMS_ProjectDisciplineInterfaceTypeField = convertSubs ? new TIMS_ProjectDisciplineInterfaceTypeFieldViewModel(m.TIMS_ProjectDisciplineInterfaceTypeField) : null;
                this.TIMS_ProjectInterfacePointWorkflow       = convertSubs ? new TIMS_ProjectInterfacePointWorkflowViewModel(m.TIMS_ProjectInterfacePointWorkflow) : null;
            }

            return(this);
        }