✅ Issues with setting up different classes and sql connection
Could someone help me understand how I can setup this SQL connection? it's my first time organizing my code into different folders and really structuring my app with different folders, etc.
I get the error "A field initializer cannot reference the non-static field, method or property 'Customer.connection' ".
I want to make it so that I have a connection class that handles the connection. Currently I have: model class that talks to the dal class that talks to the connection class
I have the following class:
My connection class looks like this
I get the error "A field initializer cannot reference the non-static field, method or property 'Customer.connection' ".
I want to make it so that I have a connection class that handles the connection. Currently I have: model class that talks to the dal class that talks to the connection class
I have the following class:
My connection class looks like this
