{"id":22938452,"url":"https://github.com/jacraig/inflatable","last_synced_at":"2025-08-12T18:33:25.818Z","repository":{"id":65535600,"uuid":"80868065","full_name":"JaCraig/Inflatable","owner":"JaCraig","description":"An ORM. Useful for prototyping but it has the ability to generate a database from a model, keeps them in sync, and has the ability to analyze the database and make suggestions. Has lazy loading, allows quering using IQueryables, straight SQL, and caching of data is built in. So in otherwords, it's a basic ORM.","archived":false,"fork":false,"pushed_at":"2024-04-12T05:23:21.000Z","size":65545,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-12T13:06:39.522Z","etag":null,"topics":["orm","sql"],"latest_commit_sha":null,"homepage":"https://jacraig.github.io/Inflatable/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaCraig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-02-03T20:49:58.000Z","updated_at":"2024-04-15T06:53:05.709Z","dependencies_parsed_at":"2024-04-12T06:42:08.685Z","dependency_job_id":null,"html_url":"https://github.com/JaCraig/Inflatable","commit_stats":{"total_commits":281,"total_committers":5,"mean_commits":56.2,"dds":0.4626334519572953,"last_synced_commit":"1aae2cf5cec0325cbbd1b2f5f1be3441d8a633ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FInflatable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FInflatable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FInflatable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FInflatable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaCraig","download_url":"https://codeload.github.com/JaCraig/Inflatable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229700239,"owners_count":18109944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["orm","sql"],"created_at":"2024-12-14T12:17:59.633Z","updated_at":"2024-12-14T12:18:00.166Z","avatar_url":"https://github.com/JaCraig.png","language":"C#","readme":"# Inflatable\n\n[![Build status](https://ci.appveyor.com/api/projects/status/nr3ltljg4rkfwnph?svg=true)](https://ci.appveyor.com/project/JaCraig/inflatable)\n\nInflatable is a feature-rich ORM (Object-Relational Mapping) library for .NET applications. It provides seamless integration with your data access layer, allowing you to interact with your database using a convenient and expressive API.\n\n## Getting Started\n\nTo use Inflatable, you need to wire it up with you ServiceCollection. Follow the steps below to configure your application:\n\n1. Install the Inflatable package from NuGet.\n\n2. In your application's startup code, add the following lines to configure Canister:\n\n    ```csharp\n    var services = new ServiceCollection();\n    services.AddCanisterModules();\n    // ...\n    ```\n\n    The `AddCanisterModules()` extension method registers Inflatable with the IoC container.\n\n3. With these steps completed, Inflatable is ready to be used within your application.\n\n## Basic Usage\n\nThe primary class of interest in Inflatable is the `DbContext` class, which provides a rich set of features for querying and interacting with your database.\n\n### Querying Data\n\nTo retrieve data from the database, use the `DbContext\u003cT\u003e` class with the `CreateQuery()` method:\n\n```csharp\nvar results = DbContext\u003cMyPoco\u003e.CreateQuery().Where(x =\u003e x.MyProperty == 12).ToList();\n```\n\nThe `CreateQuery()` method returns an `IQueryable\u003cT\u003e`, allowing you to chain additional query operations such as `Where`, `Select`, `OrderBy`, `Distinct`, `First`, `Single`, `Take`, and their variations. Please note that functions like `GroupBy`, `Union`, and `Include` are not currently implemented.\n\nFor more complex queries or when you need to execute raw SQL, you can use the `ExecuteAsync()` method:\n\n```csharp\nvar results = await DbContext\u003cMyPoco\u003e.ExecuteAsync(\"SELECT * FROM MyTable\", CommandType.Text, \"MyConnectionString\");\n```\n\n### Saving and Deleting Objects\n\nTo save or delete an object, you need to create an instance of `DbContext` or a `Session` object:\n\n```csharp\nawait new DbContext\u003cMyPoco\u003e().Save(myObject).ExecuteAsync();\n```\n\nAlternatively, you can resolve the `DbContext` from the service provider in your application.\n\n## Documentation\n\nFor detailed information on using Inflatable and its advanced features, refer to the [documentation](https://jacraig.github.io/Inflatable/) available on the project's website.\n\n## Contributing\n\nContributions are welcome! If you have any bug reports, feature requests, or would like to contribute to the project, please check out the [contribution guidelines](https://github.com/JaCraig/Inflatable/blob/master/CONTRIBUTING.md).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Finflatable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacraig%2Finflatable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Finflatable/lists"}