Skip to content

Commit

Permalink
update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nero committed Aug 15, 2024
1 parent 1f8cb70 commit c60759a
Show file tree
Hide file tree
Showing 7 changed files with 735 additions and 708 deletions.
15 changes: 9 additions & 6 deletions Application/BaseQueryV3.h
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
#pragma once
#include <type_traits>
#include <BaseEntity.h>
#include <vector>

//TODO: Implement Query class

template <typename T, typename = std::is_base_of<BaseEntity, T>::type>
class Query
class DbSet
{
public:
Query();
~Query();
Query& Where(std::string where)
DbSet() = default;
~DbSet() = default;

DbSet& Where(std::string where)
{
_where = where;
return *this;
}

template<typename F>
Query& Include(F f)
DbSet& Include(F f)
{
_includes.push_back(typeid(f()).name());
return *this;
}

private:
std::string _command;
std::string _where;
std::vector<std::string> _includes;
};
Binary file modified ClientSolution/ChatClient/bun.lockb
Binary file not shown.
Loading

0 comments on commit c60759a

Please sign in to comment.