public ML_Country ConverteCountry(Country s) { ML_Country st = new ML_Country(); try { st.id = s.id; st.name = s.name; return st; } catch (Exception ex) { throw new Exception("Erro na rotina ConverteCountry.", ex); } }
/// <summary> /// Deprecated Method for adding a new object to the ML_Country EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToML_Country(ML_Country mL_Country) { base.AddObject("ML_Country", mL_Country); }
/// <summary> /// Create a new ML_Country 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_Country CreateML_Country(global::System.String id, global::System.String name) { ML_Country mL_Country = new ML_Country(); mL_Country.id = id; mL_Country.name = name; return mL_Country; }