Updated Entity Framework to 2.2.6, Removed PrintCredentials() Method call on login, working on #55

This commit is contained in:
kdeng00
2019-08-03 14:26:18 -04:00
parent d80842e517
commit 2d984813ec
6 changed files with 97 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.10)
project(icarus)
set(CMAKE_CXX_STANDARD 17)
set(SOURCES
src/icarus.cpp
)
add_library(icarus SHARED ${SOURCES})
+50
View File
@@ -0,0 +1,50 @@
#include <iostream>
#include <filesystem>
#include <string>
namespace fs = std::filesystem;
constexpr auto app_setting = "appsettings.Development.json";
struct Song
{
int Id;
char *Title;
char *Artist;
char *Album;
char *Genre;
int Year;
};
void create_directory_process(Song);
void create_directory_process(Song song)
{
auto curr_path = fs::current_path();
std::cout<<"current path "<<curr_path.string()<<std::endl;
}
extern "C"
{
void create_directory(Song);
void print_song_details(const Song);
void create_directory(Song song)
{
std::cout<<"c++ creating directory"<<std::endl;
print_song_details(song);
create_directory_process(song);
}
void print_song_details(const Song song)
{
std::cout<<"song details"<<std::endl;
std::cout<<"title: "<<song.Title<<std::endl;
std::cout<<"artist: "<<song.Artist<<std::endl;
std::cout<<"album: "<<song.Album<<std::endl;
std::cout<<"genre: "<<song.Genre<<std::endl;
std::cout<<"year: "<<song.Year<<std::endl;
}
}