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