Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🎶 You can roam the world with colours, flying high 🎶

Luis Beltran icebeam7

💭
🎶 You can roam the world with colours, flying high 🎶
View GitHub Profile
@icebeam7
icebeam7 / Create.cshtml
Last active Jan 9, 2021
Views/Estudiante/Create.cshtml
View Create.cshtml
@model UniversidadWebsite.Models.Estudiante
@{
ViewData["Title"] = "Create";
}
<h1>Create</h1>
<h4>Estudiante</h4>
<hr />
@icebeam7
icebeam7 / EstudiantesController
Last active Jan 9, 2021
Controllers/EstudiantesController.cs
View EstudiantesController
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using UniversidadWebsite.Context;
@icebeam7
icebeam7 / StorageHelper.cs
Last active Jan 9, 2021
Helpers/StorageHelper.cs
View StorageHelper.cs
using System;
using System.IO;
using System.Threading.Tasks;
using Azure.Storage;
using Azure.Storage.Blobs;
namespace UniversidadWebsite.Helpers
{
public static class StorageHelper
@icebeam7
icebeam7 / AzureStorageConfig.cs
Created Jan 9, 2021
Helpers/AzureStorageConfig.cs
View AzureStorageConfig.cs
namespace UniversidadWebsite.Helpers
{
public class AzureStorageConfig
{
public string Cuenta { get; set; }
public string Llave { get; set; }
public string Contenedor { get; set; }
}
}
View Startup.cs
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using UniversidadWebsite.Context;
using Microsoft.EntityFrameworkCore;
using UniversidadWebsite.Helpers;
@icebeam7
icebeam7 / UniversidadContexto.cs
Created Jan 9, 2021
Context/UniversidadContexto.cs
View UniversidadContexto.cs
using Microsoft.EntityFrameworkCore;
using UniversidadWebsite.Models;
namespace UniversidadWebsite.Context
{
public class UniversidadContexto : DbContext
{
public UniversidadContexto(DbContextOptions<UniversidadContexto> opciones) : base(opciones)
{
@icebeam7
icebeam7 / Estudiante.cs
Last active Jan 9, 2021
Models/Estudiante.cs
View Estudiante.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace UniversidadWebsite.Models
{
[Table("Estudiantes")]
public class Estudiante
@icebeam7
icebeam7 / ViewModelClass.cs
Created Jun 13, 2020
ViewModel Class - command code snippet
View ViewModelClass.cs
private ICommand $myCommand$;
public ICommand $MyCommand$ => $myCommand$ ?? ($myCommand$ = new Command(() =>
{
}));
@icebeam7
icebeam7 / ViewModelClass.cs
Created Jun 13, 2020
ViewModel Class - namespaces code snippet
View ViewModelClass.cs
using System.Windows.Input;
using Xamarin.Forms;
@icebeam7
icebeam7 / ViewModelClass.cs
Created Jun 13, 2020
ViewModel Class - properties code snippet
View ViewModelClass.cs
private $type$ $myVar$;
public $type$ $MyProperty$
{
get => $myVar$;
set => SetValue(ref $myVar$, value);
}