MicripFramework is a C# DLL that provides a lightweight framework for working with models and database connections.
- Model class for defining data models
- Connection class for managing database connections using an XML environment document
- Support for common database operations such as querying, inserting, updating, and deleting data
- Data validation, serialization, and deserialization functionalities
- Easy configuration and customization through the XML environment document
-
Add the MicripFramework DLL as a reference to your C# project.
-
Define your data models by inheriting from the Model class and specifying the properties and validation rules for your data objects.
csharpCopy code
class MyModel : Model { public string Name { get; set; } public int Age { get; set; } }
-
Create an XML environment document to configure your database connection information. The document should follow the provided schema, which includes elements for specifying the database type, connection string, and other settings.
xmlCopy code
<?xml version="1.0" encoding="utf-8"?> <ConnectionSettings> <DatabaseType>SqlServer</DatabaseType> <ConnectionString>Data Source=.;Initial Catalog=myDatabase;Integrated Security=True</ConnectionString> </ConnectionSettings>
-
Initialize the Connection class with the path to your XML environment document and use it to establish and manage database connections.
csharpCopy code
var connection = new Connection("path/to/environment.xml"); connection.Open(); // Perform database operations using the connection object connection.Close();
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please create an issue or submit a pull request on the GitHub repository.
MicripFramework is released under the MIT License. See the LICENSE file for more details.
That's it! You can now include this description and README file in your GitHub repository to provide documentation for your MicripFramework DLL.