I'm currently working on a project where i need to create a booking system using the SQL server that comes baked in with visual studio. I just need a bit of clarification on how i would access the tables using code within the local db.
I'm quite new to this, I've spent time learning the SQL...
I'm currently a masters student studying computing systems. I would like to create a portfolio where i can start showcasing my work.
Can anyone suggest a website that would be best for this? Thankyou!
I'm currently a student and ill be working on a project where I will have to create an online booking system.
I've looked up tutorials online and I'm just confused about a few things (I'm a beginner with SQL, never used it before and currently learning).
Would it be best to use MySQL? and...
I've currently been using "classname." to access methods in other classes however I read about the using static directive and thought id try it out, howeverim having a bit of an issue.
I've added the name space "using static System."class name" but its not letting me use the methods from that...
I've implemented a Dependency constructor within my main program which works perfectly, the method is triggered and it logs my data just fine. however when I attempt to achieve the same thing in another class it gives me the following error:
""System.Null.ReferenceException "object not set to...
I've created a logging class which includes a method that I want to access whenever I'd like to log an event. At the moment I'm having to create an instance each time I want to use that method. Is there a better way to do this?
When I run my program I get an exception unhandled notification for "System.Runtime,Serialization.SerializationException" however in my code I have caught this exception in a catch block. :/ Does anyone know why this is happening? I have caught many other exceptions and they all work as...
i'm attempting to load data from another file in my program, however when i attempt to this this it adds an extra two curly brackets which corrupts the json file. does anyone know why this is?
I'm currently working on a console application which stores the details of user information. At the moment I'm serialising and deserialising data to a to a Json file. . Can anyone suggest an idea of how I could maybe load data from a file aswell?
At the moment I have a lot of different functions in my main program. What I was thinking was to create another class called "ConsolePrompts" and transfer all the functions which require input from the user inside of there. Is this good or bad practice? each function does require prompt from...
I know...that title sounds stupid, but I just wanted to clarify something. At the moment I have all of my code inside of a try brace, even through the only part of the code that it likely to cause an exception would be the input of CustomerID. Should i only include the Customer ID input inside...
I had this working perfectly with if statements but I was duplicating the error message so I thought id try and simplify it with TryGetValue
The problem I have at the moment is, its still allowing me to sign in if the username is correct and the password is wrong.
At the moment I'm having to create a variable each time (see below) to access these specific keys. Is this the best way to call the keys within the config file each time you want to use them or is there an easier way to access them ?
int pMaxLength =...
I've never used Enum befores so forgive me if what i've done is wrong/bad code. Ive created an Enum in my patient class. I've created a helper method which will be activated whenever the user creates a new patient in the system. I'm having two issues.
public enum Gender
{
Male,
Female...
I am currently building a console application in visual studio. If the user is in the middle of adding a Customer, they may decide that they want to go back for whatever reason. If the user is Adding a customer, I want them to be able to press the "Esc" button at any point to go back to the main...
I've managed to change individual fields but then end up deleting everything else in the file. I only want to edit one field. Any help would be greatly appreciated. Thankyou
Heres my current code:
public static void UpdatePatientData()
{
string detail, choice...
I am able to add multiple patients to the txt file, however when I attempt to read all the data from the file, it only prints one patient.
Secondly, when I add a patient, how do I move it onto the next line? at the moment the patient gets appended onto the same line at the first patient.
Could...
At the moment the program will only reveal a letter if the users input matches the specified letter within the iteration.
What I would like to do is reveal a letter despite what iteration the user is on...e.g. if the user inputs "P" on the first iteration I want the program to reveal all the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.