# XData **Repository Path**: lipz89/XData ## Basic Information - **Project Name**: XData - **Description**: No description available - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-29 - **Last Updated**: 2025-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # XData XData is a lightweight .NET-based data access framework designed to simplify database operations and improve development efficiency. It provides rich features including querying, inserting, updating, and deleting operations, and supports multiple database types. ## Features - **Multiple Database Support**: Supports various databases including SQL Server, MySQL, Oracle, PostgreSQL, and SQLite. - **Fluent Query Syntax**: Provides a fluent chainable query syntax that simplifies the writing of complex queries. - **Entity Mapping**: Automatically maps database results to entity objects, reducing manual coding. - **Transaction Management**: Supports transaction processing to ensure data consistency. - **Logging**: Built-in SQL logging functionality for debugging and performance optimization. ## Installation You can install XData via the NuGet package manager: ```bash Install-Package XData ``` ## Usage Examples ### Initialize Context ```csharp var context = new XContext("your_connection_string", "your_provider_name"); ``` ### Query Data ```csharp var users = context.Query().ToList(); ``` ### Insert Data ```csharp var user = new User { UserName = "example", Password = "password" }; context.Insert(user); ``` ### Update Data ```csharp var user = context.GetByKey(1); user.UserName = "new_name"; context.Update(user); ``` ### Delete Data ```csharp context.DeleteByKey(1); ``` ## Contribution Code contributions and feedback are welcome! Please refer to the contribution guidelines to learn how to get involved. ## License XData follows the MIT License. For details, please refer to the LICENSE file. ## Contact If you have any questions or suggestions, please contact the author. --- This README provides basic information and a usage guide for the XData project, helping developers quickly get started and use the framework.