/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Usuarios EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUsuarios(Usuario usuario) { base.AddObject("Usuarios", usuario); }