0
I have the following method:
internal ArquivoVersao GetArquivoVersao(string arquivoVersaoGuid)
{
using (var ctx = new TestEntities())
{
var versao = (from ver in ctx.ARQUIVO_VERSAO
where ver.ARQUIVO_VERSAO_GUID == arquivoVersaoGuid
select new ArquivoVersao()
{
ARQUIVO_GUID = ver.ARQUIVO_GUID,
ARQUIVO = ver.ARQUIVO,
USUARIO_PESSOA_GUID = ver.USUARIO_PESSOA_GUID,
TAMANHO = ver.TAMANHO,
DATAHORA = ver.DATAHORA,
ARQUIVO_VERSAO_GUID = ver.ARQUIVO_VERSAO_GUID
}).FirstOrDefault();
return versao;
}
}
i want to show the result, when calling this method it shows the object, wanted to show a value on the screen. I sent a . Tostring() but it won’t.
How you try to display this value on the screen?
– PauloHDSousa
Response.write("Value:"+dal.GetArchvoVersao.Tostring());
– War Lock
or store the method in a string, whatever
– War Lock
You are trying to give a . Tostring() in Object... tries to do so Archival.GetArchitectVersao.FILE.Tostring()
– PauloHDSousa
this way he returned me his type, System.Byte[]
– War Lock
Which field do you want to display? just put it in the place of file, for example. Arquivodal.GetAquivoVersao.DATAHORA.Tostring()
– PauloHDSousa
It worked, thanks, if you want to create answer, I do a joinha. Thanks
– War Lock