/// <summary> /// Deprecated Method for adding a new object to the Estabelecimentos EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEstabelecimentos(Estabelecimentos estabelecimentos) { base.AddObject("Estabelecimentos", estabelecimentos); }
/// <summary> /// Create a new Estabelecimentos object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="cNPJ">Initial value of the CNPJ property.</param> /// <param name="logradouro">Initial value of the Logradouro property.</param> /// <param name="endereco">Initial value of the Endereco property.</param> /// <param name="bairro">Initial value of the Bairro property.</param> /// <param name="cidade">Initial value of the Cidade property.</param> /// <param name="estado">Initial value of the Estado property.</param> /// <param name="cEP">Initial value of the CEP property.</param> /// <param name="fone">Initial value of the Fone property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="numero">Initial value of the Numero property.</param> /// <param name="codMunicipio">Initial value of the CodMunicipio property.</param> /// <param name="idSistema">Initial value of the IdSistema property.</param> public static Estabelecimentos CreateEstabelecimentos(global::System.Int32 id, global::System.String cNPJ, global::System.String logradouro, global::System.String endereco, global::System.String bairro, global::System.String cidade, global::System.String estado, global::System.String cEP, global::System.String fone, global::System.String email, global::System.Int32 numero, global::System.Int32 codMunicipio, global::System.Int32 idSistema) { Estabelecimentos estabelecimentos = new Estabelecimentos(); estabelecimentos.Id = id; estabelecimentos.CNPJ = cNPJ; estabelecimentos.Logradouro = logradouro; estabelecimentos.Endereco = endereco; estabelecimentos.Bairro = bairro; estabelecimentos.Cidade = cidade; estabelecimentos.Estado = estado; estabelecimentos.CEP = cEP; estabelecimentos.Fone = fone; estabelecimentos.Email = email; estabelecimentos.Numero = numero; estabelecimentos.CodMunicipio = codMunicipio; estabelecimentos.IdSistema = idSistema; return estabelecimentos; }
public static bool adicionarSistemaAoEstab(ref Estabelecimentos objEstab, int idSistema) { try { objEstab.IdSistema = idSistema; return true; } catch { return false; } }