Skip to content

Instantly share code, notes, and snippets.

View jsheridanwells's full-sized avatar

Jeremy Wells jsheridanwells

View GitHub Profile
@jsheridanwells
jsheridanwells / Program.cs
Last active March 2, 2018 13:32
My first basic ML reader/writer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace Bootcamp_JeremyWells
{
class Program
@jsheridanwells
jsheridanwells / Sample.Tests.cs
Last active March 12, 2018 19:46
Basic C# Unit Tests
using System;
using BankAccountNS;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BankTest
{
[TestClass] // Tests are set in test classes...
public class BankAccountTests
{
[TestMethod] // ... and test methods

ASP.NET API Setup Part 1

Starting

  1. Creating Project: Scaffolding:
  • New Project -> .NET Core -> ASP.NET Core Web Application
  • Then, API template
  1. Use NuGet to check for any package updates

EF Core Tutorial Notes

(From this tutorial)...

Make sure you have these workloads:

  • DotNet Desktop Development
  • Data Storage and Processing
  • ASP and Web Development * .Net Core Cross Platform Development

Entity Framework Notes

Installing SQL Backup

Restore backup in SQL Management Studio

In project, create new ADO.NET Entity Model. Select Code First Template option

New connection -> Select Server (PUL0068L in my case) -> Select Database -> Test Connection -> Name connection string -> Select Tables to store -> Leave Singular and Plural names

EF Notes Part 1

(Following this tutorial...)

Creating Models

Primary keys can be set as Id or <MODEL NAME>Id.

Foreign keys are set as <MODEL NAME>Id.

public class Enrollment

XML Notes

XML - eXtensible: you can make up your own tags

Foundation of several technologies, XHTML, RSS/ATOM, AJAX, APIs

Structures and describes information

Intended to be used a an Internet technologies

VSTS Intro

Continuous Integration

Build Agent: Item in charge of building, testing, and deploying your code in the cloud.

Build Definition: A set of steps and tasks that the uild process must go through for the code to be built successfully.

Build Set: Action that is carried out to complete the build process.

@jsheridanwells
jsheridanwells / BS4+Ng5.md
Last active May 13, 2018 18:22
Adding Bootstrap 4 to Angular5 app

Adding Bootstrap 4 to an Angular 5 app:

  1. Add Bootstrap dependency:
$ npm install --save bootstrap
  1. Add Bootstrap CSS to styles.css:
@import "~bootstrap/dist/css/bootstrap.css"
@jsheridanwells
jsheridanwells / Notes_1.md
Last active May 15, 2018 21:13
Using Web API 2 with EF 6

Using ASP.NET Web API 2 with EF 6

Creating the project:

New Project -> ASP.NET Web Application -> Web API

Creating Entities:

Main Model: