View Create.cshtml
@model UniversidadWebsite.Models.Estudiante | |
@{ | |
ViewData["Title"] = "Create"; | |
} | |
<h1>Create</h1> | |
<h4>Estudiante</h4> | |
<hr /> |
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; |
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 |
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; |
View UniversidadContexto.cs
using Microsoft.EntityFrameworkCore; | |
using UniversidadWebsite.Models; | |
namespace UniversidadWebsite.Context | |
{ | |
public class UniversidadContexto : DbContext | |
{ | |
public UniversidadContexto(DbContextOptions<UniversidadContexto> opciones) : base(opciones) | |
{ |
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 |
View ViewModelClass.cs
private ICommand $myCommand$; | |
public ICommand $MyCommand$ => $myCommand$ ?? ($myCommand$ = new Command(() => | |
{ | |
})); |
View ViewModelClass.cs
using System.Windows.Input; | |
using Xamarin.Forms; |
View ViewModelClass.cs
private $type$ $myVar$; | |
public $type$ $MyProperty$ | |
{ | |
get => $myVar$; | |
set => SetValue(ref $myVar$, value); | |
} |
NewerOlder