Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4 . 5 Your Name, Week 4 Database PA All Addresses in the Database Address 1 : 1 2 3 Apple Tree Ln Fremont, NC
Your Name, Week Database PA
All Addresses in the Database
Address :
Apple Tree Ln
Fremont, NC
Address :
Labrador Dr
Apt
Greenville, VA
Address :
Spring Grove St
Unit
Spring, TX
Address :
Green Way
Flynt MI
Get an Address Using an Invalid ID
Address :
Updated Address
Address :
Labrador St
Apt
Greendale, TN
All Addresses in the Database
Address :
Apple Tree Ln
Fremont, NC
Address :
Spring Grove St
Unit
Spring, TX
Address :
Green Way
Flynt MI create the C# code based on the requirements provided below.
Your application will demonstrate storing and retrieving data in a SQLite database by creating software classes that create a database with one table and perform CRUD Create Read, Update, Delete operations on data in that table. The data table will represent addresses and will store information typically associated with mailing addresses. Incorporate the following requirements into your application:
For all classes provide the following
Documentation at the top of the class file that includes
Your name
Date of development
Assignment eg CIS Performance Assessment Database
Description of the class
Address information to store must include the following:
ID primary key
Street Address eg Main Street
Street Address eg Suite
City
State
Zip Code digit, eg
Create classes to perform the following:
Create or connect to a SQLite database
Interact with the Addresses database table
Create the table if it does not exist
Add a record to the table
Read a single record from the table
Read all records from the table
Update a record in the database
Delete a record from the database
Model or represent the data stored in the Addresses table
The main application must do the following
Print a line that states "Your Name Week Database PA
Connect to the database or create it with the name "YourName.dbreplacing "YourName" with your actual name if it doesn't exist
Create the Addresses table if it doesn't exist
Add records to the addresses table, some with address line information and some without ie just an empty string
Print the addresses in the database as follows, preceded by a line indicating you're printing all addresses in the database see sample output for an example:
Header stating "Address : where ID is the ID of the address record
Street address part
Street address part if it is not blank
City, State, Zip Code
Print the result of trying to retrieve an address from the database using an invalid ID preceded by a line indicating you're printing an address retrieved using an invalid ID
Update an address and print the updated address, preceded by a line indicating you're printing an updated record
Delete an address followed by printing all the records in the database, preceded by an appropriate header
Data stored and specific implementation of the classes is up to your discretion your verbiage DOES NOT have to match the wording in the example output. Feel free to be creative with it
Reminder:
You will need to add support to the C# project for using SQLite as follows:
Open a command prompt at the project folder using the same techniques used to open a
command prompt for running an application
Enter the following command and press Enter:
dotnet add package System.Data.SQLite version
Sample Output:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started