kedinn turpo
asked 10 years ago

I really like the plugin and install http://www.comoprogramar.org/preguntas/
my problem is when I paste the code into the form spaces disappear, the indentation is deformed.
could improve the form as sabaidiscuss plugin, you can insert code without deforming.
example
 
ublic Usuario GetUserById(Usuario pUsuario)
{
var resultado = new Usuario();
var conexion = new ConnectionPostgreSQL();
var cadenaSQL = string.Empty;

using (var db = conexion.AbreConexion())
{
cadenaSQL = “SELECT * FROM Usuario WHERE Id = “ + pUsuario.Id;
try
{
if (error.IdError == 0)
{
var comando = new NpgsqlCommand(cadenaSQL, db);
var lector = comando.ExecuteReader();

while (lector.Read())
{
resultado.id = (int)lector[“Id”];
resultado.email = (string)lector[“nombre”];
}
}
}
catch (Exception exception)
{
throw;
}
}
return resultado;
}

1 Answers
DominicStaff
answered 10 years ago

Hi Kedinn !
Thanks for your feedback. We will improve this function in the next version of the plugin.
Regards,

Powered by DW Question & Answer Pro