Пример #1
0
 /// <summary>
 /// Create a new Usuario object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="endereco">Initial value of the Endereco property.</param>
 public static Usuario CreateUsuario(global::System.Int32 userId, Endereco endereco)
 {
     Usuario usuario = new Usuario();
     usuario.UserId = userId;
     usuario.Endereco = StructuralObject.VerifyComplexObjectIsNotNull(endereco, "Endereco");
     return usuario;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Usuarios EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUsuarios(Usuario usuario)
 {
     base.AddObject("Usuarios", usuario);
 }