/// <summary>
 /// Create a new ML_State object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the name property.</param>
 public static ML_State CreateML_State(global::System.String id, global::System.String name)
 {
     ML_State mL_State = new ML_State();
     mL_State.id = id;
     mL_State.name = name;
     return mL_State;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ML_State EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToML_State(ML_State mL_State)
 {
     base.AddObject("ML_State", mL_State);
 }
        public ML_State ConverteState(State s)
        {
            ML_State st = new ML_State();

            try
            {

                st.id = s.id;
                st.name = s.name;

                return st;

            }
            catch (Exception ex)
            {
                throw new Exception("Erro na rotina ConverteState.", ex);

            }
        }