Posts

Showing posts from December, 2020

Donate

Upload Photos Or Files To Google Photos Using Google Photos API, REST And C#.NET

Image
Good morning! I wrote a console application before Read Files From Google Photos Using Google Photos API, REST And C#.NET that reads media items from Google Photos using Google Photos API, C# And REST. That console application was the foundation to one of my project using real world client API. However, that project is limited to only read files and does not have the upload capabilities. Now that I'm free with the projects at work, it's time to revisit the Google Photos API and create a simple console application that will upload photos/images or files to Google Photos using REST, Google Photos API and C#. So to get started, make sure you have read the documentation to setup the API here Get started with REST . Once you have successfully setup the API, download the JSON file that contains your credentials specifically Client Secret and Client ID and add that file to your console app project. Make sure to set the Copy to Output Directory of the JSON file to Copy always i

Visual Studio Nuget Package Restore Error - The type or namespace name 'Xamarin' could not be found

Image
Good evening, Recently, I encountered an error called "The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)" when running my simple Xamarin Forms application in Visual Studio 2019 which is the output of the training I attended with. It seems that the project is missing some references and when running the solution, the project was unable to download the missing assemblies. After investigating the problem, I found the culprit. Our custom Nuget packages were located in a server which has been turned off due to system upgrades and these files will be moved to a new location. So to fix the issue I had to perform the steps below: 1. Temporarily unchecked our custom built packages in Package Sources of Package Manager Settings since our server that contains those packages was turned off for system maintenance and the projects including the packages will be moved to a new location. 2. Run the command &q

ASP.NET MVC Web Application CRUD Using RepoDB ORM

Image
Happy Sunday Awesome Programmers! See the ASP.NET Core MVC version of this tutorial here Create An ASP.NET Core MVC CRUD Website Using RepoDB ORM And SQL Server A week ago, I received a newsletter regarding a promising ORM called RepoDB. This ORM library is created by Michael Pendon who is an application architect in Europe. According to him, RepoDB is an open-source . NET ORM library that bridges the gaps of micro-ORMs and full-ORMs. It helps you simplify the switch-over of when to use the BASIC and ADVANCE operations during the development. It is your best alternative ORM to both Dapper and EntityFramework . It also provides query support to several databases such as MySQL, SQL Server, PostGreSQL and there's a survey that this ORM's performance is faster than Dapper. I've used Dapper before and Entity framework in my ASP.NET MVC applications so, it's time to try using this tool by creating a simple ASP.NET MVC CRUD Application(Create, Read, Update, Delete) Applic

ASP.NET MVC Bind Or Populate jsTree From SQL Server Database

Image
Hello Everyone, Normally when working with real world information, we tend to have projects or tasks that will show employees with their supervisors or managers viewed in hierarchical structure. If the given project is a web application, the jsTree.js fits for this requirement. This article will show you how to populate a jsTree from SQL Server database table called ContosoRetailsDW which is a Microsoft sample database. It already has a table specifically DimEmployee that we can play with. To begin with lets define the models used. The JsTreeModel class contains the information used by the jsTree while the clsResourceManagers class receives the result from the query. public class EmpManagerTreeViewModel { public clsResourceManagers ResourceManager { get ; set ; } public JsTreeModel EmployeeTreeModel { get ; set ; } public EmpManagerTreeViewModel() { ResourceManager = new clsResourceManagers(); EmployeeTreeModel = new JsTreeModel(); } } public class clsRes

Donate