示例#1
0
        /// <summary>
        /// Create a new Amigo object.
        /// </summary>
        /// <param name="idAmigo">Initial value of the IdAmigo property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="local">Initial value of the Local property.</param>
        /// <param name="latitude">Initial value of the Latitude property.</param>
        /// <param name="longitude">Initial value of the Longitude property.</param>
        public static Amigo CreateAmigo(global::System.Int32 idAmigo, global::System.String nome, global::System.String local, global::System.Decimal latitude, global::System.Decimal longitude)
        {
            Amigo amigo = new Amigo();

            amigo.IdAmigo   = idAmigo;
            amigo.Nome      = nome;
            amigo.Local     = local;
            amigo.Latitude  = latitude;
            amigo.Longitude = longitude;
            return(amigo);
        }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Amigos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAmigos(Amigo amigo)
 {
     base.AddObject("Amigos", amigo);
 }