Skip to content

Initial cleanup notes #2

@zippy1981

Description

@zippy1981

I'm trying to get hammerdb running on my laptop so I can test this. However, having looked at the code, the following needs to be done:

  • DB access needs to be moved outside of the windorm classess and possible into a separate DLL
  • using() blocks need to be utilised for the SqlCommand and SqlReader objects.
  • SqlCommand.Parameters.AddWithValue() should be used
  • Thread.Start() should never be called. Task parallel library should be used

My first code commit will probably include the last three things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions