Skip to content

An ASP.NET Core 9 MVC application using SQLite with ADO.NET and the generic repository design pattern for data access. It demonstrates CRUD operations with asynchronous methods, parameterized queries for security, and Bootstrap 5.3 for responsive UI design.

License

Notifications You must be signed in to change notification settings

AslamNazeerShaikh/BootstrapTutorial

Repository files navigation

  • The provided implementation uses Connected Architecture of ADO.NET. Here’s why:

In the given implementation, Connected Architecture is a better choice because:

  1. It aligns well with the generic repository pattern.
  2. Each operation (CRUD) executes a single command or query.
  3. It avoids unnecessary overhead of managing disconnected data structures.

Characteristics of Connected Architecture in the Code

1. Direct Database Connection

  • The code explicitly opens a database connection using SqliteConnection (e.g., connection.OpenAsync()).
  • It keeps the connection open while executing SQL commands and fetching data.

2. Immediate Execution

  • SQL queries are executed immediately through commands like ExecuteReaderAsync, ExecuteNonQueryAsync, etc.
  • Data is processed directly from the SqliteDataReader in memory without intermediate storage (e.g., a DataSet or DataTable).

3. No Disconnected Data Structures

  • The code does not use ADO.NET objects like DataSet or DataAdapter for disconnected operations.
  • It retrieves and processes data sequentially and releases the connection once the task is done.

4. Optimized for Real-Time Operations

  • This approach is suitable for scenarios where data is fetched, modified, or written immediately.

About

An ASP.NET Core 9 MVC application using SQLite with ADO.NET and the generic repository design pattern for data access. It demonstrates CRUD operations with asynchronous methods, parameterized queries for security, and Bootstrap 5.3 for responsive UI design.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published