presentation & tools
This commit is contained in:
@ -30,16 +30,16 @@
|
|||||||
@:<html>
|
@:<html>
|
||||||
@:<head>
|
@:<head>
|
||||||
@:<meta name="viewport" content="width=device-width" />
|
@:<meta name="viewport" content="width=device-width" />
|
||||||
@:<title>@Model.ViewName</title>
|
@:<title>@@SR[@Model.ViewName]</title>
|
||||||
@:</head>
|
@:</head>
|
||||||
@:<body>
|
@:<body>
|
||||||
@:
|
@:
|
||||||
// PushIndent(" ");
|
// PushIndent(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<h3>Are you sure you want to delete this?</h3>
|
<h3>@@SR["AreYourSureYouWantToDeleteThis"]</h3>
|
||||||
<div>
|
<div>
|
||||||
<h4>@Model.ViewDataTypeShortName</h4>
|
<h4>@@SR[@Model.ViewDataTypeShortName]</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
@{
|
@{
|
||||||
@ -59,7 +59,7 @@
|
|||||||
@:
|
@:
|
||||||
@:<form asp-action="@Model.ViewName">
|
@:<form asp-action="@Model.ViewName">
|
||||||
@:<div class="form-actions no-color">
|
@:<div class="form-actions no-color">
|
||||||
@:<input type="submit" value="Delete" class="btn btn-default" /> |
|
@:<input type="submit" value="@@SR["Delete"]" class="btn btn-default" /> |
|
||||||
@:<a asp-action="Index">@@SR["Back to List"]</a>
|
@:<a asp-action="Index">@@SR["Back to List"]</a>
|
||||||
@:</div>
|
@:</div>
|
||||||
@:</form>
|
@:</form>
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@:@@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
|
@:@@Html.ActionLink(@@SR["Edit"], "Edit", new { /* id = Model.PrimaryKey */ }) |
|
||||||
@:<a asp-action="Index">@@SR["Back to List"]</a>
|
@:<a asp-action="Index">@@SR["Back to List"]</a>
|
||||||
}
|
}
|
||||||
}</p>
|
}</p>
|
||||||
|
@ -60,8 +60,8 @@
|
|||||||
@:<div class="form-group">
|
@:<div class="form-group">
|
||||||
@:<label asp-for="@property.PropertyName" class="control-label col-md-2">@GetAssociationName(property)</label>
|
@:<label asp-for="@property.PropertyName" class="control-label col-md-2">@GetAssociationName(property)</label>
|
||||||
@:<div class="col-md-10">
|
@:<div class="col-md-10">
|
||||||
@:<select asp-for="@property.PropertyName" class="form-control" />
|
@:<select asp-for="@property.PropertyName" class="form-control" ></select>
|
||||||
@:<span asp-validation-for="@property.PropertyName" class="text-danger" />
|
@:<span asp-validation-for="@property.PropertyName" class="text-danger" ></span>
|
||||||
@:</div>
|
@:</div>
|
||||||
@:</div>
|
@:</div>
|
||||||
continue;
|
continue;
|
||||||
|
@ -77,9 +77,9 @@
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
<td>
|
<td>
|
||||||
@@Html.ActionLink("Edit", SR["Edit"], new { /* id=item.PrimaryKey */ }) |
|
@@Html.ActionLink(SR["Edit"], "Edit",new { /* id=item.PrimaryKey */ }) |
|
||||||
@@Html.ActionLink("Details", SR["Details"], new { /* id=item.PrimaryKey */ }) |
|
@@Html.ActionLink(SR["Details"], "Details", new { /* id=item.PrimaryKey */ }) |
|
||||||
@@Html.ActionLink("Delete", SR["Delete"], new { /* id=item.PrimaryKey */ })
|
@@Html.ActionLink(SR["Delete"], "Delete", new { /* id=item.PrimaryKey */ })
|
||||||
</td>
|
</td>
|
||||||
}
|
}
|
||||||
@:</tr>
|
@:</tr>
|
||||||
|
@ -5,7 +5,8 @@ include $(MAKEFILE_DIR)/dnx.mk
|
|||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
$(BINTARGETPATH): ../OAuth.AspNet.AuthServer/bin/$(CONFIGURATION)/OAuth.AspNet.AuthServer.dll ../Yavsc.Abstract/bin/$(CONFIGURATION)/Yavsc.Abstract.dll prepare_code
|
$(BINTARGETPATH): ../OAuth.AspNet.AuthServer/bin/$(CONFIGURATION)/OAuth.AspNet.AuthServer.dll \
|
||||||
|
../Yavsc.Abstract/bin/$(CONFIGURATION)/Yavsc.Abstract.dll prepare_code
|
||||||
|
|
||||||
../OAuth.AspNet.AuthServer/bin/$(CONFIGURATION)/OAuth.AspNet.AuthServer.dll:
|
../OAuth.AspNet.AuthServer/bin/$(CONFIGURATION)/OAuth.AspNet.AuthServer.dll:
|
||||||
make -C ../OAuth.AspNet.AuthServer
|
make -C ../OAuth.AspNet.AuthServer
|
||||||
@ -13,9 +14,11 @@ $(BINTARGETPATH): ../OAuth.AspNet.AuthServer/bin/$(CONFIGURATION)/OAuth.AspNet.A
|
|||||||
../Yavsc.Abstract/bin/$(CONFIGURATION)/Yavsc.Abstract.dll:
|
../Yavsc.Abstract/bin/$(CONFIGURATION)/Yavsc.Abstract.dll:
|
||||||
make -C ../Yavsc.Abstract
|
make -C ../Yavsc.Abstract
|
||||||
|
|
||||||
%.Designer.cs: Resources/%.resx
|
%.Designer.cs: %.resx
|
||||||
strotygen -l -p -t -r "Yavsc.Server.Resources." $^
|
strotygen -l -p -t -r "Yavsc.Server.Resources." $^
|
||||||
|
|
||||||
prepare_code: Resources/Yavsc.Models.IT.Fixing.Bug.Designer.cs Yavsc.Models.Relationship.HyperLink.Designer.cs
|
prepare_code: Resources/Yavsc.Models.IT.Fixing.Bug.Designer.cs \
|
||||||
|
Resources/Yavsc.Models.Relationship.HyperLink.Designer.cs \
|
||||||
|
Resources/Yavsc.Models.Streaming.LiveFlow.Designer.cs
|
||||||
|
|
||||||
all: $(BINTARGETPATH)
|
all: $(BINTARGETPATH)
|
||||||
|
@ -12,8 +12,9 @@ namespace Yavsc.Models
|
|||||||
using Models.Bank;
|
using Models.Bank;
|
||||||
using Models.Access;
|
using Models.Access;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
public class ApplicationUser : IdentityUser
|
public class ApplicationUser : IdentityUser, IBaseTrackedEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Another me, as a byte array.
|
/// Another me, as a byte array.
|
||||||
@ -108,5 +109,24 @@ namespace Yavsc.Models
|
|||||||
[JsonIgnore][InverseProperty("User")]
|
[JsonIgnore][InverseProperty("User")]
|
||||||
public virtual List<ChatRoomAccess> RoomAccess { get; set; }
|
public virtual List<ChatRoomAccess> RoomAccess { get; set; }
|
||||||
|
|
||||||
|
public DateTime DateCreated
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string UserCreated
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DateTime DateModified
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string UserModified
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,10 @@ using Yavsc.Abstract.Streaming;
|
|||||||
namespace Yavsc.Models.Streaming
|
namespace Yavsc.Models.Streaming
|
||||||
{
|
{
|
||||||
|
|
||||||
public class LiveFlow : ILiveFlow {
|
public partial class LiveFlow : ILiveFlow {
|
||||||
|
|
||||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
[Display(Name="FlowId")]
|
[Display(Name="FlowIdLabel")]
|
||||||
// set by the server, unique
|
// set by the server, unique
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
|
|
||||||
@ -18,25 +18,31 @@ namespace Yavsc.Models.Streaming
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[StringLength(255)]
|
[StringLength(255)]
|
||||||
|
[Display(Name="TitleLabel")]
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
||||||
// a little description
|
// a little description
|
||||||
[StringLength(1023)]
|
[StringLength(1023)]
|
||||||
|
[Display(Name="PitchLabel")]
|
||||||
public string Pitch { get; set; }
|
public string Pitch { get; set; }
|
||||||
|
|
||||||
// The stream type
|
// The stream type
|
||||||
[StringLength(127)]
|
[StringLength(127)]
|
||||||
|
[Display(Name="MediaTypeLabel")]
|
||||||
public string MediaType { get; set; }
|
public string MediaType { get; set; }
|
||||||
|
|
||||||
// A name where to save this stream, relative to user's files root
|
// A name where to save this stream, relative to user's files root
|
||||||
[StringLength(255)]
|
[StringLength(255)]
|
||||||
|
[Display(Name="DifferedFileNameLabel")]
|
||||||
public string DifferedFileName { get; set; }
|
public string DifferedFileName { get; set; }
|
||||||
public int SequenceNumber { get; set; }
|
public int SequenceNumber { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
|
[Display(Name="OwnerIdLabel")]
|
||||||
public string OwnerId {get; set; }
|
public string OwnerId {get; set; }
|
||||||
|
|
||||||
[ForeignKey("OwnerId")]
|
[ForeignKey("OwnerId")]
|
||||||
|
[Display(Name="OwnerLabel")]
|
||||||
public virtual ApplicationUser Owner { get; set; }
|
public virtual ApplicationUser Owner { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,11 +10,11 @@ namespace Yavsc.Models.Relationship
|
|||||||
Prompt="http://some.web.site")]
|
Prompt="http://some.web.site")]
|
||||||
public string HRef { get; set; }
|
public string HRef { get; set; }
|
||||||
|
|
||||||
[YaStringLength(5,1024)]
|
[YaStringLength(0,12)]
|
||||||
[Display(Name="MethodDisplayName", ResourceType=typeof(HyperLink), Prompt="GET")]
|
[Display(Name="MethodDisplayName", ResourceType=typeof(HyperLink), Prompt="GET")]
|
||||||
public string Method { get; set; }
|
public string Method { get; set; }
|
||||||
|
|
||||||
[YaStringLength(5,25)]
|
[YaStringLength(0,25)]
|
||||||
[Display(Name="RelDisplayName", ResourceType=typeof(HyperLink),
|
[Display(Name="RelDisplayName", ResourceType=typeof(HyperLink),
|
||||||
Prompt="href")]
|
Prompt="href")]
|
||||||
public string Rel { get; set; }
|
public string Rel { get; set; }
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
//------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <autogenerated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Mono Runtime Version: 4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </autogenerated>
|
||||||
//------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Yavsc.Models.Relationship {
|
namespace Yavsc.Models.Relationship {
|
||||||
using System;
|
using System;
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
</resheader>
|
</resheader>
|
||||||
<data name="MethodDisplayName" ><value>Methode Http attendue coté serveur</value></data>
|
<data name="MethodDisplayName" ><value>Methode Http attendue coté serveur</value></data>
|
||||||
<data name="ContentTypeDisplayName"><value>Type mime du contenu attendu côté client</value></data>
|
<data name="ContentTypeDisplayName"><value>Type mime du contenu attendu côté client</value></data>
|
||||||
<data name="RelDisplayName"><value>Classe de lien</value></data>
|
<data name="RelDisplayName" comment="'href' ou 'css' ou 'extplug' ... igonoré"><value>Type de lien</value></data>
|
||||||
<data name="HRefDisplayName"><value>Valeur du lien</value></data>
|
<data name="HRefDisplayName"><value>Valeur du lien</value></data>
|
||||||
|
|
||||||
</root>
|
</root>
|
94
src/Yavsc.Server/Resources/Yavsc.Models.Streaming.LiveFlow.Designer.cs
generated
Normal file
94
src/Yavsc.Server/Resources/Yavsc.Models.Streaming.LiveFlow.Designer.cs
generated
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace Yavsc.Models.Streaming {
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
public partial class LiveFlow {
|
||||||
|
|
||||||
|
private static System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
|
private static System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
public static System.Resources.ResourceManager ResourceManager {
|
||||||
|
get {
|
||||||
|
if (object.Equals(null, resourceMan)) {
|
||||||
|
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Server.Resources." + "Yavsc.Models.Streaming.LiveFlow"), typeof(LiveFlow).GetTypeInfo().Assembly);
|
||||||
|
resourceMan = temp;
|
||||||
|
}
|
||||||
|
return resourceMan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
public static System.Globalization.CultureInfo Culture {
|
||||||
|
get {
|
||||||
|
return resourceCulture;
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
resourceCulture = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string DifferedFileNameLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("DifferedFileNameLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string MediaTypeLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("MediaTypeLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string PitchLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("PitchLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string SequenceNumberLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("SequenceNumberLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string TitleLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("TitleLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string FlowIdLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("FlowIdLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string OwnerIdLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("OwnerIdLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string OwnerLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("OwnerLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,73 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<!--
|
||||||
|
route name for the api controller used to tag the 'BlogPost' entity
|
||||||
|
-->
|
||||||
|
<data name="DifferedFileNameLabel"><value>Nom de fichier pour le différé</value></data>
|
||||||
|
<data name="MediaTypeLabel"><value>Type de média</value></data>
|
||||||
|
<data name="PitchLabel"><value>Le pitch</value></data>
|
||||||
|
<data name="SequenceNumberLabel"><value>Numéro de séauence</value></data>
|
||||||
|
<data name="TitleLabel"><value>Titre</value></data>
|
||||||
|
<data name="FlowIdLabel"><value>Identifiant du flux</value></data>
|
||||||
|
<data name="OwnerIdLabel"><value>Identifiant du propriétaire</value></data>
|
||||||
|
<data name="OwnerLabel"><value>Propriétaire</value></data>
|
||||||
|
|
||||||
|
</root>
|
@ -25,7 +25,19 @@ namespace Yavsc.Controllers
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<UserInfo> GetApplicationUser()
|
public IEnumerable<UserInfo> GetApplicationUser()
|
||||||
{
|
{
|
||||||
return _context.Users.Select(u=> new UserInfo {
|
return _context.Users.OrderByDescending(u => u.DateModified).Take(25)
|
||||||
|
.Select(u=> new UserInfo {
|
||||||
|
UserId = u.Id,
|
||||||
|
UserName = u.UserName,
|
||||||
|
Avatar = u.Avatar });
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("search/{pattern}")]
|
||||||
|
public IEnumerable<UserInfo> SearchApplicationUser(string pattern)
|
||||||
|
{
|
||||||
|
return _context.Users.Where(u => u.UserName.Contains(pattern))
|
||||||
|
.OrderByDescending(u => u.DateModified).Take(25)
|
||||||
|
.Select(u=> new UserInfo {
|
||||||
UserId = u.Id,
|
UserId = u.Id,
|
||||||
UserName = u.UserName,
|
UserName = u.UserName,
|
||||||
Avatar = u.Avatar });
|
Avatar = u.Avatar });
|
||||||
|
@ -6,9 +6,11 @@ using Microsoft.AspNet.Authorization;
|
|||||||
using Microsoft.AspNet.Identity;
|
using Microsoft.AspNet.Identity;
|
||||||
using Microsoft.AspNet.Identity.EntityFramework;
|
using Microsoft.AspNet.Identity.EntityFramework;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
|
using Microsoft.AspNet.Mvc.Rendering;
|
||||||
using Microsoft.Data.Entity;
|
using Microsoft.Data.Entity;
|
||||||
using Yavsc.Abstract.Identity;
|
using Yavsc.Abstract.Identity;
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
|
using Yavsc.ViewModels;
|
||||||
using Yavsc.ViewModels.Administration;
|
using Yavsc.ViewModels.Administration;
|
||||||
|
|
||||||
namespace Yavsc.Controllers
|
namespace Yavsc.Controllers
|
||||||
@ -83,9 +85,6 @@ namespace Yavsc.Controllers
|
|||||||
return new BadRequestObjectResult(ModelState);
|
return new BadRequestObjectResult(ModelState);
|
||||||
}
|
}
|
||||||
|
|
||||||
IdentityRole adminRole;
|
|
||||||
adminRole = await _roleManager.FindByNameAsync(Constants.AdminGroupName);
|
|
||||||
|
|
||||||
var addToRoleResult = await _userManager.AddToRoleAsync(user, Constants.AdminGroupName);
|
var addToRoleResult = await _userManager.AddToRoleAsync(user, Constants.AdminGroupName);
|
||||||
if (!addToRoleResult.Succeeded)
|
if (!addToRoleResult.Succeeded)
|
||||||
{
|
{
|
||||||
@ -146,6 +145,32 @@ namespace Yavsc.Controllers
|
|||||||
};
|
};
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Authorize("AdministratorOnly")]
|
||||||
|
public IActionResult GiveAdmin()
|
||||||
|
{
|
||||||
|
ViewBag.NewAdminId = new SelectList(context.Users, "Id", "UserName");
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Authorize("AdministratorOnly")]
|
||||||
|
[HttpPost()]
|
||||||
|
public async Task<IActionResult> GiveAdmin(NewAdminViewModel model)
|
||||||
|
{
|
||||||
|
if (ModelState.IsValid)
|
||||||
|
{
|
||||||
|
var newAdmin = await context.Users.FirstOrDefaultAsync(u=>u.Id==model.NewAdminId);
|
||||||
|
if (newAdmin==null) return HttpNotFound();
|
||||||
|
var addToRoleResult = await _userManager.AddToRoleAsync(newAdmin, Constants.AdminGroupName);
|
||||||
|
if (!addToRoleResult.Succeeded)
|
||||||
|
{
|
||||||
|
return View("Index");
|
||||||
|
}
|
||||||
|
AddErrors(addToRoleResult);
|
||||||
|
}
|
||||||
|
ViewBag.NewAdminId = new SelectList(context.Users, "Id", "UserName");
|
||||||
|
return View();
|
||||||
|
}
|
||||||
private void AddErrors(IdentityResult result)
|
private void AddErrors(IdentityResult result)
|
||||||
{
|
{
|
||||||
foreach (var error in result.Errors)
|
foreach (var error in result.Errors)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Authorization;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
using Microsoft.Data.Entity;
|
using Microsoft.Data.Entity;
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
@ -6,6 +7,7 @@ using Yavsc.Models.Relationship;
|
|||||||
|
|
||||||
namespace Yavsc.Controllers
|
namespace Yavsc.Controllers
|
||||||
{
|
{
|
||||||
|
[Authorize("AdministratorOnly")]
|
||||||
public class HyperLinkController : Controller
|
public class HyperLinkController : Controller
|
||||||
{
|
{
|
||||||
private ApplicationDbContext _context;
|
private ApplicationDbContext _context;
|
||||||
@ -22,14 +24,14 @@ namespace Yavsc.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GET: HyperLink/Details/5
|
// GET: HyperLink/Details/5
|
||||||
public async Task<IActionResult> Details(string id)
|
public async Task<IActionResult> Details(string href, string method)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (href == null || method ==null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == id);
|
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == href && m.Method == method);
|
||||||
if (hyperLink == null)
|
if (hyperLink == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
@ -59,14 +61,14 @@ namespace Yavsc.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GET: HyperLink/Edit/5
|
// GET: HyperLink/Edit/5
|
||||||
public async Task<IActionResult> Edit(string id)
|
public async Task<IActionResult> Edit(string href, string method)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (href == null || method ==null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == id);
|
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == href && m.Method == method);
|
||||||
if (hyperLink == null)
|
if (hyperLink == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
@ -90,14 +92,15 @@ namespace Yavsc.Controllers
|
|||||||
|
|
||||||
// GET: HyperLink/Delete/5
|
// GET: HyperLink/Delete/5
|
||||||
[ActionName("Delete")]
|
[ActionName("Delete")]
|
||||||
public async Task<IActionResult> Delete(string id)
|
public async Task<IActionResult> Delete(string href, string method)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (href == null || method ==null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == id);
|
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == href && m.Method == method);
|
||||||
|
|
||||||
if (hyperLink == null)
|
if (hyperLink == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
@ -109,9 +112,15 @@ namespace Yavsc.Controllers
|
|||||||
// POST: HyperLink/Delete/5
|
// POST: HyperLink/Delete/5
|
||||||
[HttpPost, ActionName("Delete")]
|
[HttpPost, ActionName("Delete")]
|
||||||
[ValidateAntiForgeryToken]
|
[ValidateAntiForgeryToken]
|
||||||
public async Task<IActionResult> DeleteConfirmed(string id)
|
public async Task<IActionResult> DeleteConfirmed(string HRef, string Method)
|
||||||
{
|
{
|
||||||
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == id);
|
if (HRef == null || Method ==null)
|
||||||
|
{
|
||||||
|
return HttpNotFound();
|
||||||
|
}
|
||||||
|
|
||||||
|
HyperLink hyperLink = await _context.HyperLink.SingleAsync(m => m.HRef == HRef && m.Method == Method);
|
||||||
|
|
||||||
_context.HyperLink.Remove(hyperLink);
|
_context.HyperLink.Remove(hyperLink);
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
|
@ -8,6 +8,7 @@ MAKEFILE_DIR=$(SOURCE_DIR)/scripts/build/make
|
|||||||
BASERESX= Resources/Yavsc.ChatHub.resx\
|
BASERESX= Resources/Yavsc.ChatHub.resx\
|
||||||
Resources/Yavsc.ViewComponents.CommentViewComponent.resx\
|
Resources/Yavsc.ViewComponents.CommentViewComponent.resx\
|
||||||
Resources/Yavsc.ViewModels.FrontOffice.PerformerProfileViewModel.resx\
|
Resources/Yavsc.ViewModels.FrontOffice.PerformerProfileViewModel.resx\
|
||||||
|
Resources/Yavsc.ViewModels.NewAdminViewModel.resx\
|
||||||
Resources/Yavsc.YavscLocalisation.resx
|
Resources/Yavsc.YavscLocalisation.resx
|
||||||
BASERESXGEN=$(BASERESX:.resx=.Designer.cs)
|
BASERESXGEN=$(BASERESX:.resx=.Designer.cs)
|
||||||
|
|
||||||
|
2060
src/Yavsc/Migrations/20190622172941_userTrack.Designer.cs
generated
Normal file
2060
src/Yavsc/Migrations/20190622172941_userTrack.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
943
src/Yavsc/Migrations/20190622172941_userTrack.cs
Normal file
943
src/Yavsc/Migrations/20190622172941_userTrack.cs
Normal file
@ -0,0 +1,943 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Data.Entity.Migrations;
|
||||||
|
|
||||||
|
namespace Yavsc.Migrations
|
||||||
|
{
|
||||||
|
public partial class userTrack : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId", table: "AspNetRoleClaims");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId", table: "AspNetUserClaims");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId", table: "AspNetUserLogins");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_IdentityRole_RoleId", table: "AspNetUserRoles");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_ApplicationUser_UserId", table: "AspNetUserRoles");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration");
|
||||||
|
migrationBuilder.AddColumn<DateTime>(
|
||||||
|
name: "DateCreated",
|
||||||
|
table: "AspNetUsers",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||||
|
migrationBuilder.AddColumn<DateTime>(
|
||||||
|
name: "DateModified",
|
||||||
|
table: "AspNetUsers",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "UserCreated",
|
||||||
|
table: "AspNetUsers",
|
||||||
|
nullable: true);
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "UserModified",
|
||||||
|
table: "AspNetUsers",
|
||||||
|
nullable: true);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId",
|
||||||
|
table: "AspNetRoleClaims",
|
||||||
|
column: "RoleId",
|
||||||
|
principalTable: "AspNetRoles",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId",
|
||||||
|
table: "AspNetUserClaims",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId",
|
||||||
|
table: "AspNetUserLogins",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserRole<string>_IdentityRole_RoleId",
|
||||||
|
table: "AspNetUserRoles",
|
||||||
|
column: "RoleId",
|
||||||
|
principalTable: "AspNetRoles",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserRole<string>_ApplicationUser_UserId",
|
||||||
|
table: "AspNetUserRoles",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Ban_ApplicationUser_TargetId",
|
||||||
|
table: "Ban",
|
||||||
|
column: "TargetId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BlackListed_ApplicationUser_OwnerId",
|
||||||
|
table: "BlackListed",
|
||||||
|
column: "OwnerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BlackListed_ApplicationUser_UserId",
|
||||||
|
table: "BlackListed",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId",
|
||||||
|
table: "CircleAuthorizationToBlogPost",
|
||||||
|
column: "BlogPostId",
|
||||||
|
principalTable: "BlogPost",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId",
|
||||||
|
table: "CircleAuthorizationToBlogPost",
|
||||||
|
column: "CircleId",
|
||||||
|
principalTable: "Circle",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_AccountBalance_ApplicationUser_UserId",
|
||||||
|
table: "AccountBalance",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BalanceImpact_AccountBalance_BalanceId",
|
||||||
|
table: "BalanceImpact",
|
||||||
|
column: "BalanceId",
|
||||||
|
principalTable: "AccountBalance",
|
||||||
|
principalColumn: "UserId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CommandLine_Estimate_EstimateId",
|
||||||
|
table: "CommandLine",
|
||||||
|
column: "EstimateId",
|
||||||
|
principalTable: "Estimate",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Estimate_ApplicationUser_ClientId",
|
||||||
|
table: "Estimate",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BlogTag_BlogPost_PostId",
|
||||||
|
table: "BlogTag",
|
||||||
|
column: "PostId",
|
||||||
|
principalTable: "BlogPost",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BlogTag_Tag_TagId",
|
||||||
|
table: "BlogTag",
|
||||||
|
column: "TagId",
|
||||||
|
principalTable: "Tag",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Comment_ApplicationUser_AuthorId",
|
||||||
|
table: "Comment",
|
||||||
|
column: "AuthorId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Comment_BlogPost_PostId",
|
||||||
|
table: "Comment",
|
||||||
|
column: "PostId",
|
||||||
|
principalTable: "BlogPost",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Schedule_ApplicationUser_OwnerId",
|
||||||
|
table: "Schedule",
|
||||||
|
column: "OwnerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ChatConnection_ApplicationUser_ApplicationUserId",
|
||||||
|
table: "ChatConnection",
|
||||||
|
column: "ApplicationUserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ChatRoomAccess_ApplicationUser_UserId",
|
||||||
|
table: "ChatRoomAccess",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BrusherProfile_PerformerProfile_UserId",
|
||||||
|
table: "BrusherProfile",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_Activity_ActivityCode",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_ApplicationUser_ClientId",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_PerformerProfile_PerformerId",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_HairPrestation_PrestationId",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "PrestationId",
|
||||||
|
principalTable: "HairPrestation",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairMultiCutQuery_Activity_ActivityCode",
|
||||||
|
table: "HairMultiCutQuery",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairMultiCutQuery_ApplicationUser_ClientId",
|
||||||
|
table: "HairMultiCutQuery",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId",
|
||||||
|
table: "HairMultiCutQuery",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId",
|
||||||
|
table: "HairPrestationCollectionItem",
|
||||||
|
column: "PrestationId",
|
||||||
|
principalTable: "HairPrestation",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId",
|
||||||
|
table: "HairPrestationCollectionItem",
|
||||||
|
column: "QueryId",
|
||||||
|
principalTable: "HairMultiCutQuery",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairTaint_Color_ColorId",
|
||||||
|
table: "HairTaint",
|
||||||
|
column: "ColorId",
|
||||||
|
principalTable: "Color",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairTaintInstance_HairPrestation_PrestationId",
|
||||||
|
table: "HairTaintInstance",
|
||||||
|
column: "PrestationId",
|
||||||
|
principalTable: "HairPrestation",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairTaintInstance_HairTaint_TaintId",
|
||||||
|
table: "HairTaintInstance",
|
||||||
|
column: "TaintId",
|
||||||
|
principalTable: "HairTaint",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_DimissClicked_Notification_NotificationId",
|
||||||
|
table: "DimissClicked",
|
||||||
|
column: "NotificationId",
|
||||||
|
principalTable: "Notification",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_DimissClicked_ApplicationUser_UserId",
|
||||||
|
table: "DimissClicked",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Instrumentation_Instrument_InstrumentId",
|
||||||
|
table: "Instrumentation",
|
||||||
|
column: "InstrumentId",
|
||||||
|
principalTable: "Instrument",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_PayPalPayment_ApplicationUser_ExecutorId",
|
||||||
|
table: "PayPalPayment",
|
||||||
|
column: "ExecutorId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleMember_Circle_CircleId",
|
||||||
|
table: "CircleMember",
|
||||||
|
column: "CircleId",
|
||||||
|
principalTable: "Circle",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleMember_ApplicationUser_MemberId",
|
||||||
|
table: "CircleMember",
|
||||||
|
column: "MemberId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Contact_PostalAddress_AddressId",
|
||||||
|
table: "Contact",
|
||||||
|
column: "AddressId",
|
||||||
|
principalTable: "PostalAddress",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_LiveFlow_ApplicationUser_OwnerId",
|
||||||
|
table: "LiveFlow",
|
||||||
|
column: "OwnerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CommandForm_Activity_ActivityCode",
|
||||||
|
table: "CommandForm",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_PerformerProfile_Location_OrganizationAddressId",
|
||||||
|
table: "PerformerProfile",
|
||||||
|
column: "OrganizationAddressId",
|
||||||
|
principalTable: "Location",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_PerformerProfile_ApplicationUser_PerformerId",
|
||||||
|
table: "PerformerProfile",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_RdvQuery_Activity_ActivityCode",
|
||||||
|
table: "RdvQuery",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_RdvQuery_ApplicationUser_ClientId",
|
||||||
|
table: "RdvQuery",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_RdvQuery_PerformerProfile_PerformerId",
|
||||||
|
table: "RdvQuery",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_UserActivity_Activity_DoesCode",
|
||||||
|
table: "UserActivity",
|
||||||
|
column: "DoesCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_UserActivity_PerformerProfile_UserId",
|
||||||
|
table: "UserActivity",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_MailingTemplate_ApplicationUser_ManagerId",
|
||||||
|
table: "MailingTemplate",
|
||||||
|
column: "ManagerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_MailingTemplate_ApplicationUser_SuccessorId",
|
||||||
|
table: "MailingTemplate",
|
||||||
|
column: "SuccessorId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_Activity_ActivityCode",
|
||||||
|
table: "Project",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_ApplicationUser_ClientId",
|
||||||
|
table: "Project",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_GitRepositoryReference_GitId",
|
||||||
|
table: "Project",
|
||||||
|
column: "GitId",
|
||||||
|
principalTable: "GitRepositoryReference",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_PerformerProfile_PerformerId",
|
||||||
|
table: "Project",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ProjectBuildConfiguration_Project_ProjectId",
|
||||||
|
table: "ProjectBuildConfiguration",
|
||||||
|
column: "ProjectId",
|
||||||
|
principalTable: "Project",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId", table: "AspNetRoleClaims");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId", table: "AspNetUserClaims");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId", table: "AspNetUserLogins");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_IdentityRole_RoleId", table: "AspNetUserRoles");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole<string>_ApplicationUser_UserId", table: "AspNetUserRoles");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project");
|
||||||
|
migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration");
|
||||||
|
migrationBuilder.DropColumn(name: "DateCreated", table: "AspNetUsers");
|
||||||
|
migrationBuilder.DropColumn(name: "DateModified", table: "AspNetUsers");
|
||||||
|
migrationBuilder.DropColumn(name: "UserCreated", table: "AspNetUsers");
|
||||||
|
migrationBuilder.DropColumn(name: "UserModified", table: "AspNetUsers");
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityRoleClaim<string>_IdentityRole_RoleId",
|
||||||
|
table: "AspNetRoleClaims",
|
||||||
|
column: "RoleId",
|
||||||
|
principalTable: "AspNetRoles",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserClaim<string>_ApplicationUser_UserId",
|
||||||
|
table: "AspNetUserClaims",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserLogin<string>_ApplicationUser_UserId",
|
||||||
|
table: "AspNetUserLogins",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserRole<string>_IdentityRole_RoleId",
|
||||||
|
table: "AspNetUserRoles",
|
||||||
|
column: "RoleId",
|
||||||
|
principalTable: "AspNetRoles",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_IdentityUserRole<string>_ApplicationUser_UserId",
|
||||||
|
table: "AspNetUserRoles",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Ban_ApplicationUser_TargetId",
|
||||||
|
table: "Ban",
|
||||||
|
column: "TargetId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BlackListed_ApplicationUser_OwnerId",
|
||||||
|
table: "BlackListed",
|
||||||
|
column: "OwnerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId",
|
||||||
|
table: "CircleAuthorizationToBlogPost",
|
||||||
|
column: "BlogPostId",
|
||||||
|
principalTable: "BlogPost",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId",
|
||||||
|
table: "CircleAuthorizationToBlogPost",
|
||||||
|
column: "CircleId",
|
||||||
|
principalTable: "Circle",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_AccountBalance_ApplicationUser_UserId",
|
||||||
|
table: "AccountBalance",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BalanceImpact_AccountBalance_BalanceId",
|
||||||
|
table: "BalanceImpact",
|
||||||
|
column: "BalanceId",
|
||||||
|
principalTable: "AccountBalance",
|
||||||
|
principalColumn: "UserId",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CommandLine_Estimate_EstimateId",
|
||||||
|
table: "CommandLine",
|
||||||
|
column: "EstimateId",
|
||||||
|
principalTable: "Estimate",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Estimate_ApplicationUser_ClientId",
|
||||||
|
table: "Estimate",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BlogTag_BlogPost_PostId",
|
||||||
|
table: "BlogTag",
|
||||||
|
column: "PostId",
|
||||||
|
principalTable: "BlogPost",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BlogTag_Tag_TagId",
|
||||||
|
table: "BlogTag",
|
||||||
|
column: "TagId",
|
||||||
|
principalTable: "Tag",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Comment_ApplicationUser_AuthorId",
|
||||||
|
table: "Comment",
|
||||||
|
column: "AuthorId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Comment_BlogPost_PostId",
|
||||||
|
table: "Comment",
|
||||||
|
column: "PostId",
|
||||||
|
principalTable: "BlogPost",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Schedule_ApplicationUser_OwnerId",
|
||||||
|
table: "Schedule",
|
||||||
|
column: "OwnerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ChatConnection_ApplicationUser_ApplicationUserId",
|
||||||
|
table: "ChatConnection",
|
||||||
|
column: "ApplicationUserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ChatRoomAccess_ApplicationUser_UserId",
|
||||||
|
table: "ChatRoomAccess",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_BrusherProfile_PerformerProfile_UserId",
|
||||||
|
table: "BrusherProfile",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_Activity_ActivityCode",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_ApplicationUser_ClientId",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_PerformerProfile_PerformerId",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairCutQuery_HairPrestation_PrestationId",
|
||||||
|
table: "HairCutQuery",
|
||||||
|
column: "PrestationId",
|
||||||
|
principalTable: "HairPrestation",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairMultiCutQuery_Activity_ActivityCode",
|
||||||
|
table: "HairMultiCutQuery",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairMultiCutQuery_ApplicationUser_ClientId",
|
||||||
|
table: "HairMultiCutQuery",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId",
|
||||||
|
table: "HairMultiCutQuery",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId",
|
||||||
|
table: "HairPrestationCollectionItem",
|
||||||
|
column: "PrestationId",
|
||||||
|
principalTable: "HairPrestation",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId",
|
||||||
|
table: "HairPrestationCollectionItem",
|
||||||
|
column: "QueryId",
|
||||||
|
principalTable: "HairMultiCutQuery",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairTaint_Color_ColorId",
|
||||||
|
table: "HairTaint",
|
||||||
|
column: "ColorId",
|
||||||
|
principalTable: "Color",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairTaintInstance_HairPrestation_PrestationId",
|
||||||
|
table: "HairTaintInstance",
|
||||||
|
column: "PrestationId",
|
||||||
|
principalTable: "HairPrestation",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_HairTaintInstance_HairTaint_TaintId",
|
||||||
|
table: "HairTaintInstance",
|
||||||
|
column: "TaintId",
|
||||||
|
principalTable: "HairTaint",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_DimissClicked_Notification_NotificationId",
|
||||||
|
table: "DimissClicked",
|
||||||
|
column: "NotificationId",
|
||||||
|
principalTable: "Notification",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_DimissClicked_ApplicationUser_UserId",
|
||||||
|
table: "DimissClicked",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Instrumentation_Instrument_InstrumentId",
|
||||||
|
table: "Instrumentation",
|
||||||
|
column: "InstrumentId",
|
||||||
|
principalTable: "Instrument",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_PayPalPayment_ApplicationUser_ExecutorId",
|
||||||
|
table: "PayPalPayment",
|
||||||
|
column: "ExecutorId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleMember_Circle_CircleId",
|
||||||
|
table: "CircleMember",
|
||||||
|
column: "CircleId",
|
||||||
|
principalTable: "Circle",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CircleMember_ApplicationUser_MemberId",
|
||||||
|
table: "CircleMember",
|
||||||
|
column: "MemberId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Contact_PostalAddress_AddressId",
|
||||||
|
table: "Contact",
|
||||||
|
column: "AddressId",
|
||||||
|
principalTable: "PostalAddress",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_LiveFlow_ApplicationUser_OwnerId",
|
||||||
|
table: "LiveFlow",
|
||||||
|
column: "OwnerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_CommandForm_Activity_ActivityCode",
|
||||||
|
table: "CommandForm",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_PerformerProfile_Location_OrganizationAddressId",
|
||||||
|
table: "PerformerProfile",
|
||||||
|
column: "OrganizationAddressId",
|
||||||
|
principalTable: "Location",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_PerformerProfile_ApplicationUser_PerformerId",
|
||||||
|
table: "PerformerProfile",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_RdvQuery_Activity_ActivityCode",
|
||||||
|
table: "RdvQuery",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_RdvQuery_ApplicationUser_ClientId",
|
||||||
|
table: "RdvQuery",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_RdvQuery_PerformerProfile_PerformerId",
|
||||||
|
table: "RdvQuery",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_UserActivity_Activity_DoesCode",
|
||||||
|
table: "UserActivity",
|
||||||
|
column: "DoesCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_UserActivity_PerformerProfile_UserId",
|
||||||
|
table: "UserActivity",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_MailingTemplate_ApplicationUser_ManagerId",
|
||||||
|
table: "MailingTemplate",
|
||||||
|
column: "ManagerId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_MailingTemplate_ApplicationUser_SuccessorId",
|
||||||
|
table: "MailingTemplate",
|
||||||
|
column: "SuccessorId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_Activity_ActivityCode",
|
||||||
|
table: "Project",
|
||||||
|
column: "ActivityCode",
|
||||||
|
principalTable: "Activity",
|
||||||
|
principalColumn: "Code",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_ApplicationUser_ClientId",
|
||||||
|
table: "Project",
|
||||||
|
column: "ClientId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_GitRepositoryReference_GitId",
|
||||||
|
table: "Project",
|
||||||
|
column: "GitId",
|
||||||
|
principalTable: "GitRepositoryReference",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Project_PerformerProfile_PerformerId",
|
||||||
|
table: "Project",
|
||||||
|
column: "PerformerId",
|
||||||
|
principalTable: "PerformerProfile",
|
||||||
|
principalColumn: "PerformerId",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ProjectBuildConfiguration_Project_ProjectId",
|
||||||
|
table: "ProjectBuildConfiguration",
|
||||||
|
column: "ProjectId",
|
||||||
|
principalTable: "Project",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.Data.Entity;
|
using Microsoft.Data.Entity;
|
||||||
using Microsoft.Data.Entity.Infrastructure;
|
using Microsoft.Data.Entity.Infrastructure;
|
||||||
|
using Microsoft.Data.Entity.Metadata;
|
||||||
|
using Microsoft.Data.Entity.Migrations;
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
|
|
||||||
namespace Yavsc.Migrations
|
namespace Yavsc.Migrations
|
||||||
@ -186,6 +188,10 @@ namespace Yavsc.Migrations
|
|||||||
b.Property<string>("ConcurrencyStamp")
|
b.Property<string>("ConcurrencyStamp")
|
||||||
.IsConcurrencyToken();
|
.IsConcurrencyToken();
|
||||||
|
|
||||||
|
b.Property<DateTime>("DateCreated");
|
||||||
|
|
||||||
|
b.Property<DateTime>("DateModified");
|
||||||
|
|
||||||
b.Property<string>("DedicatedGoogleCalendar")
|
b.Property<string>("DedicatedGoogleCalendar")
|
||||||
.HasAnnotation("MaxLength", 512);
|
.HasAnnotation("MaxLength", 512);
|
||||||
|
|
||||||
@ -227,6 +233,10 @@ namespace Yavsc.Migrations
|
|||||||
|
|
||||||
b.Property<bool>("TwoFactorEnabled");
|
b.Property<bool>("TwoFactorEnabled");
|
||||||
|
|
||||||
|
b.Property<string>("UserCreated");
|
||||||
|
|
||||||
|
b.Property<string>("UserModified");
|
||||||
|
|
||||||
b.Property<string>("UserName")
|
b.Property<string>("UserName")
|
||||||
.HasAnnotation("MaxLength", 256);
|
.HasAnnotation("MaxLength", 256);
|
||||||
|
|
||||||
@ -474,7 +484,8 @@ namespace Yavsc.Migrations
|
|||||||
b.Property<string>("AuthorId")
|
b.Property<string>("AuthorId")
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.Property<string>("Content");
|
b.Property<string>("Content")
|
||||||
|
.HasAnnotation("MaxLength", 1024);
|
||||||
|
|
||||||
b.Property<DateTime>("DateCreated");
|
b.Property<DateTime>("DateCreated");
|
||||||
|
|
||||||
@ -874,9 +885,11 @@ namespace Yavsc.Migrations
|
|||||||
b.Property<long>("Id")
|
b.Property<long>("Id")
|
||||||
.ValueGeneratedOnAdd();
|
.ValueGeneratedOnAdd();
|
||||||
|
|
||||||
b.Property<string>("Description");
|
b.Property<string>("Description")
|
||||||
|
.HasAnnotation("MaxLength", 10240);
|
||||||
|
|
||||||
b.Property<string>("ShortName");
|
b.Property<string>("ShortName")
|
||||||
|
.HasAnnotation("MaxLength", 256);
|
||||||
|
|
||||||
b.Property<int>("Status");
|
b.Property<int>("Status");
|
||||||
|
|
||||||
@ -1560,6 +1573,10 @@ namespace Yavsc.Migrations
|
|||||||
b.HasOne("Yavsc.Models.ApplicationUser")
|
b.HasOne("Yavsc.Models.ApplicationUser")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("OwnerId");
|
.HasForeignKey("OwnerId");
|
||||||
|
|
||||||
|
b.HasOne("Yavsc.Models.ApplicationUser")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b =>
|
modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b =>
|
||||||
|
52
src/Yavsc/Resources/Yavsc.ViewModels.NewAdminViewModel.Designer.cs
generated
Normal file
52
src/Yavsc/Resources/Yavsc.ViewModels.NewAdminViewModel.Designer.cs
generated
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace Yavsc.ViewModels {
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
public partial class NewAdminViewModel {
|
||||||
|
|
||||||
|
private static System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
|
private static System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
public static System.Resources.ResourceManager ResourceManager {
|
||||||
|
get {
|
||||||
|
if (object.Equals(null, resourceMan)) {
|
||||||
|
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Resources." + "Yavsc.ViewModels.NewAdminViewModel"), typeof(NewAdminViewModel).GetTypeInfo().Assembly);
|
||||||
|
resourceMan = temp;
|
||||||
|
}
|
||||||
|
return resourceMan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
public static System.Globalization.CultureInfo Culture {
|
||||||
|
get {
|
||||||
|
return resourceCulture;
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
resourceCulture = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string NewAdminLabel {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("NewAdminLabel", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
62
src/Yavsc/Resources/Yavsc.ViewModels.NewAdminViewModel.resx
Normal file
62
src/Yavsc/Resources/Yavsc.ViewModels.NewAdminViewModel.resx
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<data name="NewAdminLabel"><value>Nouvel administrateur</value></data>
|
||||||
|
</root>
|
@ -139,6 +139,12 @@ namespace Yavsc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string AreYourSureYouWantToDeleteThis {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("AreYourSureYouWantToDeleteThis", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static string AskForAnEstimate {
|
public static string AskForAnEstimate {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("AskForAnEstimate", resourceCulture);
|
return ResourceManager.GetString("AskForAnEstimate", resourceCulture);
|
||||||
@ -403,6 +409,18 @@ namespace Yavsc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string Create_New {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Create New", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string HyperLink {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("HyperLink", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static string Create_a_new_article {
|
public static string Create_a_new_article {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("Create a new article", resourceCulture);
|
return ResourceManager.GetString("Create a new article", resourceCulture);
|
||||||
@ -2052,5 +2070,11 @@ namespace Yavsc {
|
|||||||
return ResourceManager.GetString("Join", resourceCulture);
|
return ResourceManager.GetString("Join", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GiveAdmin {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("GiveAdmin", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,6 +134,7 @@
|
|||||||
lui présentant votre demande. Vous devriez être contacté très rapidement.</value></data>
|
lui présentant votre demande. Vous devriez être contacté très rapidement.</value></data>
|
||||||
<data name="aprestation"><value>une prestation</value></data>
|
<data name="aprestation"><value>une prestation</value></data>
|
||||||
<data name="approved"><value>Approuvé</value></data>
|
<data name="approved"><value>Approuvé</value></data>
|
||||||
|
<data name="AreYourSureYouWantToDeleteThis"><value>Êtes-vous sûr de vouloir supprimer ceci?</value></data>
|
||||||
<data name="AskForAnEstimate"><value>Demander un devis</value></data>
|
<data name="AskForAnEstimate"><value>Demander un devis</value></data>
|
||||||
<data name="AttachedFiles"><value>Fichiers attachées</value></data>
|
<data name="AttachedFiles"><value>Fichiers attachées</value></data>
|
||||||
<data name="AuthenticatedOnly"><value>Seuls les utilisateurs authentifiés peuvent accèder à cette information.</value></data>
|
<data name="AuthenticatedOnly"><value>Seuls les utilisateurs authentifiés peuvent accèder à cette information.</value></data>
|
||||||
@ -178,6 +179,8 @@
|
|||||||
<data name="Count"><value>Nombre</value></data>
|
<data name="Count"><value>Nombre</value></data>
|
||||||
<data name="CouldNotConvertVToDouble"><value>La convertion de '{0}' en 'double' a été impossible.</value></data>
|
<data name="CouldNotConvertVToDouble"><value>La convertion de '{0}' en 'double' a été impossible.</value></data>
|
||||||
<data name="Create"><value>Créer</value></data>
|
<data name="Create"><value>Créer</value></data>
|
||||||
|
<data name="Create New"><value>Créer</value></data>
|
||||||
|
<data name="HyperLink"><value>lien hyper</value></data>
|
||||||
<data name="Create a new article"><value>Créer un nouvel article</value></data>
|
<data name="Create a new article"><value>Créer un nouvel article</value></data>
|
||||||
<data name="Create a new account"><value>Créer un nouveau compte</value></data>
|
<data name="Create a new account"><value>Créer un nouveau compte</value></data>
|
||||||
<data name="Credits"><value>Crédits</value></data>
|
<data name="Credits"><value>Crédits</value></data>
|
||||||
@ -494,4 +497,5 @@ Facture réglée: {5}</value></data>
|
|||||||
|
|
||||||
<data name="AllowMonthlyEmail"><value>Recevoir la lettre mensuelle d'information</value></data>
|
<data name="AllowMonthlyEmail"><value>Recevoir la lettre mensuelle d'information</value></data>
|
||||||
<data name="Join"><value>joindre</value></data>
|
<data name="Join"><value>joindre</value></data>
|
||||||
|
<data name="GiveAdmin"><value>Compromettre l'administration</value></data>
|
||||||
</root>
|
</root>
|
||||||
|
11
src/Yavsc/ViewModels/Administration/NewAdminViewModel.cs
Normal file
11
src/Yavsc/ViewModels/Administration/NewAdminViewModel.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace Yavsc.ViewModels
|
||||||
|
{
|
||||||
|
public partial class NewAdminViewModel {
|
||||||
|
|
||||||
|
[Display(Name="NewAdminLabel", ResourceType=typeof(NewAdminViewModel))]
|
||||||
|
[Required]
|
||||||
|
public string NewAdminId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -15,7 +15,7 @@
|
|||||||
<label asp-for="Code" class="col-md-2 control-label">@SR["Code"]</label>
|
<label asp-for="Code" class="col-md-2 control-label">@SR["Code"]</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Code" class="form-control" />
|
<input asp-for="Code" class="form-control" />
|
||||||
<span asp-validation-for="Code" class="text-danger" />
|
<span asp-validation-for="Code" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
@SR["Name"]</label>
|
@SR["Name"]</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" />
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="ParentCode" asp-items=@ViewBag.ParentCode class="form-control" >
|
<select asp-for="ParentCode" asp-items=@ViewBag.ParentCode class="form-control" >
|
||||||
</select>
|
</select>
|
||||||
<span asp-validation-for="ParentCode" class="text-danger" />
|
<span asp-validation-for="ParentCode" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -40,7 +40,7 @@
|
|||||||
@SR["Description"]</label>
|
@SR["Description"]</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Description" class="form-control" />
|
<input asp-for="Description" class="form-control" />
|
||||||
<span asp-validation-for="Description" class="text-danger" />
|
<span asp-validation-for="Description" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Photo" class="form-control" />
|
<input asp-for="Photo" class="form-control" />
|
||||||
<span asp-validation-for="Photo" class="text-danger" />
|
<span asp-validation-for="Photo" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -59,7 +59,7 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
||||||
</select>
|
</select>
|
||||||
<span asp-validation-for="SettingsClassName" class="text-danger" />
|
<span asp-validation-for="SettingsClassName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" >
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -52,21 +51,21 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
||||||
</select>
|
</select>
|
||||||
<span asp-validation-for="SettingsClassName" class="text-danger" />
|
<span asp-validation-for="SettingsClassName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Hidden" class="col-md-2 control-label"></label>
|
<label asp-for="Hidden" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Hidden" class="form-control" />
|
<input asp-for="Hidden" class="form-control" />
|
||||||
<span asp-validation-for="Hidden" class="text-danger" />
|
<span asp-validation-for="Hidden" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Rate" class="col-md-2 control-label"></label>
|
<label asp-for="Rate" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Rate" class="form-control" />
|
<input asp-for="Rate" class="form-control" />
|
||||||
<span asp-validation-for="Rate" class="text-danger" />
|
<span asp-validation-for="Rate" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
23
src/Yavsc/Views/Administration/GiveAdmin.cshtml
Normal file
23
src/Yavsc/Views/Administration/GiveAdmin.cshtml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
@model Yavsc.ViewModels.NewAdminViewModel
|
||||||
|
|
||||||
|
@{
|
||||||
|
ViewBag.Title = SR["GiveAdmin"];
|
||||||
|
}
|
||||||
|
|
||||||
|
<form asp-action="GiveAdmin">
|
||||||
|
<div class="form-horizontal">
|
||||||
|
<h4>@ViewBag.Title</h4>
|
||||||
|
<hr />
|
||||||
|
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label asp-for="NewAdminId" class="col-md-2 control-label"></label>
|
||||||
|
<div class="col-md-10">
|
||||||
|
<select asp-for="NewAdminId" asp-items=@ViewBag.NewAdminId class="form-control" >
|
||||||
|
</select>
|
||||||
|
<span asp-validation-for="NewAdminId" class="text-danger" ></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
@ -12,3 +12,5 @@
|
|||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<a asp-action="GiveAdmin">@SR["GiveAdmin"]</a>
|
@ -16,7 +16,7 @@
|
|||||||
<label asp-for="For" class="col-md-2 control-label"></label>
|
<label asp-for="For" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="For" class="form-control" asp-items="@ViewBag.For"></select>
|
<select asp-for="For" class="form-control" asp-items="@ViewBag.For"></select>
|
||||||
<span asp-validation-for="For" class="text-danger" />
|
<span asp-validation-for="For" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -24,21 +24,21 @@
|
|||||||
<label asp-for="Message" class="col-md-2 control-label"></label>
|
<label asp-for="Message" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Message" class="form-control" />
|
<input asp-for="Message" class="form-control" />
|
||||||
<span asp-validation-for="Message" class="text-danger" />
|
<span asp-validation-for="Message" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Sender" class="col-md-2 control-label"></label>
|
<label asp-for="Sender" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Sender" class="form-control" />
|
<input asp-for="Sender" class="form-control" />
|
||||||
<span asp-validation-for="Sender" class="text-danger" />
|
<span asp-validation-for="Sender" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Topic" class="form-control" />
|
<input asp-for="Topic" class="form-control" />
|
||||||
<span asp-validation-for="Topic" class="text-danger" />
|
<span asp-validation-for="Topic" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,28 +16,28 @@
|
|||||||
<label asp-for="For" class="col-md-2 control-label"></label>
|
<label asp-for="For" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="For" class="form-control"></select>
|
<select asp-for="For" class="form-control"></select>
|
||||||
<span asp-validation-for="For" class="text-danger" />
|
<span asp-validation-for="For" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Message" class="col-md-2 control-label"></label>
|
<label asp-for="Message" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Message" class="form-control" />
|
<input asp-for="Message" class="form-control" />
|
||||||
<span asp-validation-for="Message" class="text-danger" />
|
<span asp-validation-for="Message" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Sender" class="col-md-2 control-label"></label>
|
<label asp-for="Sender" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Sender" class="form-control" />
|
<input asp-for="Sender" class="form-control" />
|
||||||
<span asp-validation-for="Sender" class="text-danger" />
|
<span asp-validation-for="Sender" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Topic" class="form-control" />
|
<input asp-for="Topic" class="form-control" />
|
||||||
<span asp-validation-for="Topic" class="text-danger" />
|
<span asp-validation-for="Topic" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" />
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="OwnerId" class="form-control" />
|
<input asp-for="OwnerId" class="form-control" />
|
||||||
<span asp-validation-for="OwnerId" class="text-danger" />
|
<span asp-validation-for="OwnerId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,14 +16,14 @@
|
|||||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" />
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="OwnerId" class="form-control" />
|
<input asp-for="OwnerId" class="form-control" />
|
||||||
<span asp-validation-for="OwnerId" class="text-danger" />
|
<span asp-validation-for="OwnerId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -23,42 +23,42 @@
|
|||||||
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
|
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DisplayName" class="form-control" />
|
<input asp-for="DisplayName" class="form-control" />
|
||||||
<span asp-validation-for="DisplayName" class="text-danger" />
|
<span asp-validation-for="DisplayName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
|
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="LogoutRedirectUri" class="form-control" />
|
<input asp-for="LogoutRedirectUri" class="form-control"></span>
|
||||||
<span asp-validation-for="LogoutRedirectUri" class="text-danger" />
|
<span asp-validation-for="LogoutRedirectUri" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
|
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="RedirectUri" class="form-control" />
|
<input asp-for="RedirectUri" class="form-control" />
|
||||||
<span asp-validation-for="RedirectUri" class="text-danger" />
|
<span asp-validation-for="RedirectUri" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
|
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="RefreshTokenLifeTime" class="form-control" />
|
<input asp-for="RefreshTokenLifeTime" class="form-control" ></span>
|
||||||
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger" />
|
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Secret" class="col-md-2 control-label"></label>
|
<label asp-for="Secret" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Secret" class="form-control" />
|
<input asp-for="Secret" class="form-control" />
|
||||||
<span asp-validation-for="Secret" class="text-danger" />
|
<span asp-validation-for="Secret" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Type" class="col-md-2 control-label"></label>
|
<label asp-for="Type" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
@Html.DropDownList("Type")
|
@Html.DropDownList("Type")
|
||||||
<span asp-validation-for="Type" class="text-danger" />
|
<span asp-validation-for="Type" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -24,42 +24,42 @@
|
|||||||
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
|
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DisplayName" class="form-control" />
|
<input asp-for="DisplayName" class="form-control" />
|
||||||
<span asp-validation-for="DisplayName" class="text-danger" />
|
<span asp-validation-for="DisplayName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
|
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="LogoutRedirectUri" class="form-control" />
|
<input asp-for="LogoutRedirectUri" class="form-control" />
|
||||||
<span asp-validation-for="LogoutRedirectUri" class="text-danger" />
|
<span asp-validation-for="LogoutRedirectUri" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
|
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="RedirectUri" class="form-control" />
|
<input asp-for="RedirectUri" class="form-control" />
|
||||||
<span asp-validation-for="RedirectUri" class="text-danger" />
|
<span asp-validation-for="RedirectUri" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
|
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="RefreshTokenLifeTime" class="form-control" />
|
<input asp-for="RefreshTokenLifeTime" class="form-control" />
|
||||||
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger" />
|
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Secret" class="col-md-2 control-label"></label>
|
<label asp-for="Secret" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Secret" class="form-control" />
|
<input asp-for="Secret" class="form-control" />
|
||||||
<span asp-validation-for="Secret" class="text-danger" />
|
<span asp-validation-for="Secret" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Type" class="col-md-2 control-label"></label>
|
<label asp-for="Type" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
@Html.DropDownList("Type")
|
@Html.DropDownList("Type")
|
||||||
<span asp-validation-for="Type" class="text-danger" />
|
<span asp-validation-for="Type" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -15,15 +15,15 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="PerformerId" class="control-label col-md-2">PerformerId</label>
|
<label asp-for="PerformerId" class="control-label col-md-2">PerformerId</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="PerformerId" class="form-control" />
|
<select asp-for="PerformerId" class="form-control" ></select>
|
||||||
<span asp-validation-for="PerformerId" class="text-danger" />
|
<span asp-validation-for="PerformerId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="WorkingForId" class="control-label col-md-2">WorkingForId</label>
|
<label asp-for="WorkingForId" class="control-label col-md-2">WorkingForId</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="WorkingForId" class="form-control" />
|
<select asp-for="WorkingForId" class="form-control" ></select>
|
||||||
<span asp-validation-for="WorkingForId" class="text-danger" />
|
<span asp-validation-for="WorkingForId" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<label asp-for="ValidationDate" class="col-md-2 control-label"></label>
|
<label asp-for="ValidationDate" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="ValidationDate" class="form-control" />
|
<input asp-for="ValidationDate" class="form-control" />
|
||||||
<span asp-validation-for="ValidationDate" class="text-danger" />
|
<span asp-validation-for="ValidationDate" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<label asp-for="Title" class="col-md-2 control-label"></label>
|
<label asp-for="Title" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Title" class="form-control" />
|
<input asp-for="Title" class="form-control" />
|
||||||
<span asp-validation-for="Title" class="text-danger" />
|
<span asp-validation-for="Title" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -15,21 +15,21 @@
|
|||||||
<label asp-for="Content" class="col-md-2 control-label"></label>
|
<label asp-for="Content" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Content" class="form-control" />
|
<input asp-for="Content" class="form-control" />
|
||||||
<span asp-validation-for="Content" class="text-danger" />
|
<span asp-validation-for="Content" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DateCreated" class="col-md-2 control-label"></label>
|
<label asp-for="DateCreated" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DateCreated" class="form-control" />
|
<input asp-for="DateCreated" class="form-control" />
|
||||||
<span asp-validation-for="DateCreated" class="text-danger" />
|
<span asp-validation-for="DateCreated" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DateModified" class="col-md-2 control-label"></label>
|
<label asp-for="DateModified" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DateModified" class="form-control" />
|
<input asp-for="DateModified" class="form-control" />
|
||||||
<span asp-validation-for="DateModified" class="text-danger" />
|
<span asp-validation-for="DateModified" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -42,14 +42,14 @@
|
|||||||
<label asp-for="UserCreated" class="col-md-2 control-label"></label>
|
<label asp-for="UserCreated" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="UserCreated" class="form-control" />
|
<input asp-for="UserCreated" class="form-control" />
|
||||||
<span asp-validation-for="UserCreated" class="text-danger" />
|
<span asp-validation-for="UserCreated" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="UserModified" class="col-md-2 control-label"></label>
|
<label asp-for="UserModified" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="UserModified" class="form-control" />
|
<input asp-for="UserModified" class="form-control" />
|
||||||
<span asp-validation-for="UserModified" class="text-danger" />
|
<span asp-validation-for="UserModified" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,42 +16,42 @@
|
|||||||
<label asp-for="Content" class="col-md-2 control-label"></label>
|
<label asp-for="Content" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Content" class="form-control" />
|
<input asp-for="Content" class="form-control" />
|
||||||
<span asp-validation-for="Content" class="text-danger" />
|
<span asp-validation-for="Content" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DateCreated" class="col-md-2 control-label"></label>
|
<label asp-for="DateCreated" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DateCreated" class="form-control" />
|
<input asp-for="DateCreated" class="form-control" />
|
||||||
<span asp-validation-for="DateCreated" class="text-danger" />
|
<span asp-validation-for="DateCreated" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DateModified" class="col-md-2 control-label"></label>
|
<label asp-for="DateModified" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DateModified" class="form-control" />
|
<input asp-for="DateModified" class="form-control" />
|
||||||
<span asp-validation-for="DateModified" class="text-danger" />
|
<span asp-validation-for="DateModified" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="PostId" class="control-label col-md-2">PostId</label>
|
<label asp-for="PostId" class="control-label col-md-2">PostId</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="PostId" class="form-control" />
|
<select asp-for="PostId" class="form-control" ></select>
|
||||||
<span asp-validation-for="PostId" class="text-danger" />
|
<span asp-validation-for="PostId" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="UserCreated" class="col-md-2 control-label"></label>
|
<label asp-for="UserCreated" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="UserCreated" class="form-control" />
|
<input asp-for="UserCreated" class="form-control" />
|
||||||
<span asp-validation-for="UserCreated" class="text-danger" />
|
<span asp-validation-for="UserCreated" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="UserModified" class="col-md-2 control-label"></label>
|
<label asp-for="UserModified" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="UserModified" class="form-control" />
|
<input asp-for="UserModified" class="form-control" />
|
||||||
<span asp-validation-for="UserModified" class="text-danger" />
|
<span asp-validation-for="UserModified" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<label asp-for="SoundCloudId" class="col-md-2 control-label"></label>
|
<label asp-for="SoundCloudId" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="SoundCloudId" class="form-control" />
|
<input asp-for="SoundCloudId" class="form-control" />
|
||||||
<span asp-validation-for="SoundCloudId" class="text-danger" />
|
<span asp-validation-for="SoundCloudId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<label asp-for="SoundCloudId" class="col-md-2 control-label"></label>
|
<label asp-for="SoundCloudId" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="SoundCloudId" class="form-control" />
|
<input asp-for="SoundCloudId" class="form-control" />
|
||||||
<span asp-validation-for="SoundCloudId" class="text-danger" />
|
<span asp-validation-for="SoundCloudId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="DoesCode" asp-items=@ViewBag.DoesCode class ="form-control"></select>
|
<select asp-for="DoesCode" asp-items=@ViewBag.DoesCode class ="form-control"></select>
|
||||||
|
|
||||||
<span asp-validation-for="DoesCode" class="text-danger" />
|
<span asp-validation-for="DoesCode" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<label asp-for="Weight" class="col-md-2 control-label"></label>
|
<label asp-for="Weight" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Weight" class ="form-control" />
|
<input asp-for="Weight" class ="form-control" />
|
||||||
<span asp-validation-for="Weight" class="text-danger" />
|
<span asp-validation-for="Weight" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<option value="@client.Id">@client.UserName</option>
|
<option value="@client.Id">@client.UserName</option>
|
||||||
}
|
}
|
||||||
</select>
|
</select>
|
||||||
<span asp-validation-for="ClientId" class="text-danger" />
|
<span asp-validation-for="ClientId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -30,21 +30,21 @@
|
|||||||
<option value="@query.Id" data-clientid="@query.ClientId">@Html.DisplayFor(m=> query)</option>
|
<option value="@query.Id" data-clientid="@query.ClientId">@Html.DisplayFor(m=> query)</option>
|
||||||
}
|
}
|
||||||
</select>
|
</select>
|
||||||
<span asp-validation-for="ClientId" class="text-danger" />
|
<span asp-validation-for="ClientId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Description" class="col-md-2 control-label"></label>
|
<label asp-for="Description" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Description" class="form-control" />
|
<input asp-for="Description" class="form-control" />
|
||||||
<span asp-validation-for="Description" class="text-danger" />
|
<span asp-validation-for="Description" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Title" class="col-md-2 control-label"></label>
|
<label asp-for="Title" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Title" class="form-control" />
|
<input asp-for="Title" class="form-control" />
|
||||||
<span asp-validation-for="Title" class="text-danger" />
|
<span asp-validation-for="Title" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -52,7 +52,7 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input id="NewGraphics" type="file" multiple>
|
<input id="NewGraphics" type="file" multiple>
|
||||||
@Html.Hidden("AttachedGraphics")
|
@Html.Hidden("AttachedGraphics")
|
||||||
<span asp-validation-for="AttachedGraphics" class="text-danger" />
|
<span asp-validation-for="AttachedGraphics" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input id="NewFiles" type="file" multiple>
|
<input id="NewFiles" type="file" multiple>
|
||||||
@Html.Hidden("AttachedFiles")
|
@Html.Hidden("AttachedFiles")
|
||||||
<span asp-validation-for="AttachedFiles" class="text-danger" />
|
<span asp-validation-for="AttachedFiles" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<label asp-for="Description" class="col-md-2 control-label"></label>
|
<label asp-for="Description" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Description" class="form-control" />
|
<input asp-for="Description" class="form-control" />
|
||||||
<span asp-validation-for="Description" class="text-danger" />
|
<span asp-validation-for="Description" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<label asp-for="Title" class="col-md-2 control-label"></label>
|
<label asp-for="Title" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Title" class="form-control" />
|
<input asp-for="Title" class="form-control" />
|
||||||
<span asp-validation-for="Title" class="text-danger" />
|
<span asp-validation-for="Title" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -36,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
<input id="NewGraphics" type="file" multiple>
|
<input id="NewGraphics" type="file" multiple>
|
||||||
@Html.Hidden("AttachedGraphics")
|
@Html.Hidden("AttachedGraphics")
|
||||||
<span asp-validation-for="AttachedGraphics" class="text-danger" />
|
<span asp-validation-for="AttachedGraphics" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -44,7 +44,7 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input id="NewFiles" type="file" multiple>
|
<input id="NewFiles" type="file" multiple>
|
||||||
@Html.Hidden("AttachedFiles")
|
@Html.Hidden("AttachedFiles")
|
||||||
<span asp-validation-for="AttachedFiles" class="text-danger" />
|
<span asp-validation-for="AttachedFiles" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,21 +16,21 @@
|
|||||||
<label asp-for="Description" class="col-md-2 control-label"></label>
|
<label asp-for="Description" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Description" class="form-control" />
|
<input asp-for="Description" class="form-control" />
|
||||||
<span asp-validation-for="Description" class="text-danger" />
|
<span asp-validation-for="Description" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="ShortName" class="col-md-2 control-label"></label>
|
<label asp-for="ShortName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="ShortName" class="form-control" />
|
<input asp-for="ShortName" class="form-control" />
|
||||||
<span asp-validation-for="ShortName" class="text-danger" />
|
<span asp-validation-for="ShortName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Status" class="col-md-2 control-label"></label>
|
<label asp-for="Status" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Status" class="form-control" asp-items="@ViewBag.Statuses"></select>
|
<select asp-for="Status" class="form-control" asp-items="@ViewBag.Statuses"></select>
|
||||||
<span asp-validation-for="Status" class="text-danger" />
|
<span asp-validation-for="Status" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="OwnerId" class="control-label col-md-2">OwnerId</label>
|
<label asp-for="OwnerId" class="control-label col-md-2">OwnerId</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="OwnerId" class="form-control" asp-items="@ViewBag.OwnerId" />
|
<select asp-for="OwnerId" class="form-control" asp-items="@ViewBag.OwnerId" ></select>
|
||||||
<span asp-validation-for="OwnerId" class="text-danger" />
|
<span asp-validation-for="OwnerId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -31,21 +31,21 @@
|
|||||||
<label asp-for="Dressing" class="col-md-2 control-label"></label>
|
<label asp-for="Dressing" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Dressing" class="form-control"></select>
|
<select asp-for="Dressing" class="form-control"></select>
|
||||||
<span asp-validation-for="Dressing" class="text-danger" />
|
<span asp-validation-for="Dressing" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Gender" class="col-md-2 control-label"></label>
|
<label asp-for="Gender" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Gender" class="form-control"></select>
|
<select asp-for="Gender" class="form-control"></select>
|
||||||
<span asp-validation-for="Gender" class="text-danger" />
|
<span asp-validation-for="Gender" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Length" class="col-md-2 control-label"></label>
|
<label asp-for="Length" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Length" class="form-control"></select>
|
<select asp-for="Length" class="form-control"></select>
|
||||||
<span asp-validation-for="Length" class="text-danger" />
|
<span asp-validation-for="Length" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<label asp-for="Tech" class="col-md-2 control-label"></label>
|
<label asp-for="Tech" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Tech" class="form-control"></select>
|
<select asp-for="Tech" class="form-control"></select>
|
||||||
<span asp-validation-for="Tech" class="text-danger" />
|
<span asp-validation-for="Tech" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -32,21 +32,21 @@
|
|||||||
<label asp-for="Dressing" class="col-md-2 control-label"></label>
|
<label asp-for="Dressing" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Dressing" class="form-control"></select>
|
<select asp-for="Dressing" class="form-control"></select>
|
||||||
<span asp-validation-for="Dressing" class="text-danger" />
|
<span asp-validation-for="Dressing" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Gender" class="col-md-2 control-label"></label>
|
<label asp-for="Gender" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Gender" class="form-control"></select>
|
<select asp-for="Gender" class="form-control"></select>
|
||||||
<span asp-validation-for="Gender" class="text-danger" />
|
<span asp-validation-for="Gender" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Length" class="col-md-2 control-label"></label>
|
<label asp-for="Length" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Length" class="form-control"></select>
|
<select asp-for="Length" class="form-control"></select>
|
||||||
<span asp-validation-for="Length" class="text-danger" />
|
<span asp-validation-for="Length" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<label asp-for="Tech" class="col-md-2 control-label"></label>
|
<label asp-for="Tech" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Tech" class="form-control"></select>
|
<select asp-for="Tech" class="form-control"></select>
|
||||||
<span asp-validation-for="Tech" class="text-danger" />
|
<span asp-validation-for="Tech" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<label asp-for="Brand" class="col-md-2 control-label"></label>
|
<label asp-for="Brand" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Brand" class="form-control" />
|
<input asp-for="Brand" class="form-control" />
|
||||||
<span asp-validation-for="Brand" class="text-danger" />
|
<span asp-validation-for="Brand" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,14 +16,14 @@
|
|||||||
<label asp-for="Brand" class="col-md-2 control-label"></label>
|
<label asp-for="Brand" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Brand" class="form-control" />
|
<input asp-for="Brand" class="form-control" />
|
||||||
<span asp-validation-for="Brand" class="text-danger" />
|
<span asp-validation-for="Brand" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="ColorId" class="control-label col-md-2">ColorId</label>
|
<label asp-for="ColorId" class="control-label col-md-2">ColorId</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="ColorId" asp-items=@ViewBag.ColorId class="form-control"></select>
|
<select asp-for="ColorId" asp-items=@ViewBag.ColorId class="form-control"></select>
|
||||||
<span asp-validation-for="ColorId" class="text-danger" />
|
<span asp-validation-for="ColorId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -6,11 +6,23 @@
|
|||||||
|
|
||||||
<h2>@SR["Delete"]</h2>
|
<h2>@SR["Delete"]</h2>
|
||||||
|
|
||||||
<h3>Are you sure you want to delete this?</h3>
|
<h3>@SR["AreYourSureYouWantToDeleteThis"]</h3>
|
||||||
<div>
|
<div>
|
||||||
<h4>HyperLink</h4>
|
<h4>@SR["HyperLink"]</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
|
<dt>
|
||||||
|
@Html.DisplayNameFor(model => model.HRef)
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
@Html.DisplayFor(model => model.HRef)
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
@Html.DisplayNameFor(model => model.Method)
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
@Html.DisplayFor(model => model.Method)
|
||||||
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.ContentType)
|
@Html.DisplayNameFor(model => model.ContentType)
|
||||||
</dt>
|
</dt>
|
||||||
@ -26,8 +38,10 @@
|
|||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<form asp-action="Delete">
|
<form asp-action="Delete">
|
||||||
|
<input asp-for="HRef" type="hidden" />
|
||||||
|
<input asp-for="Method" type="hidden" />
|
||||||
<div class="form-actions no-color">
|
<div class="form-actions no-color">
|
||||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
<input type="submit" value="@SR["Delete"]" class="btn btn-default" /> |
|
||||||
<a asp-action="Index">@SR["Back to List"]</a>
|
<a asp-action="Index">@SR["Back to List"]</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
<h2>@SR["Details"]</h2>
|
<h2>@SR["Details"]</h2>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h4>HyperLink</h4>
|
<h4>@SR["HyperLink"]</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.HRef)
|
@Html.DisplayNameFor(model => model.HRef)
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@Html.DisplayFor(model => model.Href)
|
@Html.DisplayFor(model => model.HRef)
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.Method)
|
@Html.DisplayNameFor(model => model.Method)
|
||||||
@ -37,6 +37,6 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
|
@Html.ActionLink(SR["Edit"], "Edit", new { /* id = Model.PrimaryKey */ }) |
|
||||||
<a asp-action="Index">@SR["Back to List"]</a>
|
<a asp-action="Index">@SR["Back to List"]</a>
|
||||||
</p>
|
</p>
|
||||||
|
@ -8,14 +8,14 @@
|
|||||||
|
|
||||||
<form asp-action="Edit">
|
<form asp-action="Edit">
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<h4>HyperLink</h4>
|
<h4>@SR["HyperLink"]</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.HRef)
|
@Html.DisplayNameFor(model => model.HRef)
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@Html.DisplayFor(model => model.Href)
|
@Html.DisplayFor(model => model.HRef)
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.Method)
|
@Html.DisplayNameFor(model => model.Method)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
ViewData["Title"] = @SR["Index"];
|
ViewData["Title"] = @SR["Index"];
|
||||||
}
|
}
|
||||||
|
|
||||||
<h2>@SR["Index"]</h2>
|
<h2>@SR["HyperLink"] - @SR["Index"]</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">@SR["Create New"]</a>
|
<a asp-action="Create">@SR["Create New"]</a>
|
||||||
@ -41,9 +41,9 @@
|
|||||||
@Html.DisplayFor(modelItem => item.Rel)
|
@Html.DisplayFor(modelItem => item.Rel)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.ActionLink("Edit", SR["Edit"], new { /* id=item.PrimaryKey */ }) |
|
@Html.ActionLink(SR["Edit"], "Edit", new { hRef=item.HRef, method = item.Method }) |
|
||||||
@Html.ActionLink("Details", SR["Details"], new { /* id=item.PrimaryKey */ }) |
|
@Html.ActionLink(SR["Details"], "Details", new { hRef=item.HRef, method = item.Method }) |
|
||||||
@Html.ActionLink("Delete", SR["Delete"], new { /* id=item.PrimaryKey */ })
|
@Html.ActionLink(SR["Delete"], "Delete", new { hRef=item.HRef, method = item.Method })
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" />
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" />
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
@model IEnumerable<Yavsc.Models.Streaming.LiveFlow>
|
@model IEnumerable<Yavsc.Models.Streaming.LiveFlow>
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Index";
|
ViewData["Title"] = @SR["Index"];
|
||||||
}
|
}
|
||||||
|
|
||||||
<h2>Index</h2>
|
<h2>Index</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">Create New</a>
|
<a asp-action="Create">@SR["Create New"]</a>
|
||||||
</p>
|
</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
@ -47,9 +47,9 @@
|
|||||||
@Html.DisplayFor(modelItem => item.Title)
|
@Html.DisplayFor(modelItem => item.Title)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
<a asp-action="Edit" asp-route-id="@item.Id">@SR["Edit"]</a> |
|
||||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
<a asp-action="Details" asp-route-id="@item.Id">@SR["Details"]</a> |
|
||||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
<a asp-action="Delete" asp-route-id="@item.Id">@SR["Delete"]</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<textarea asp-for="Body" class="form-control" >
|
<textarea asp-for="Body" class="form-control" >
|
||||||
</textarea>
|
</textarea>
|
||||||
<span asp-validation-for="Body" class="text-danger" />
|
<span asp-validation-for="Body" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -29,21 +29,21 @@
|
|||||||
<label asp-for="ReplyToAddress" class="col-md-2 control-label"></label>
|
<label asp-for="ReplyToAddress" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="ReplyToAddress" class="form-control" />
|
<input asp-for="ReplyToAddress" class="form-control" />
|
||||||
<span asp-validation-for="ReplyToAddress" class="text-danger" />
|
<span asp-validation-for="ReplyToAddress" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Topic" class="form-control" />
|
<input asp-for="Topic" class="form-control" />
|
||||||
<span asp-validation-for="Topic" class="text-danger" />
|
<span asp-validation-for="Topic" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="ToSend" class="col-md-2 control-label"></label>
|
<label asp-for="ToSend" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="ToSend" asp-items="@ViewBag.ToSend" class="form-control"></select>
|
<select asp-for="ToSend" asp-items="@ViewBag.ToSend" class="form-control"></select>
|
||||||
<span asp-validation-for="ToSend" class="text-danger" />
|
<span asp-validation-for="ToSend" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -159,11 +159,6 @@
|
|||||||
@User.GetUserId()
|
@User.GetUserId()
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<h4>
|
|
||||||
<environment names="Development">
|
|
||||||
<a asp-controller="Devices" asp-action="Index" >@SR["Gérer mes terminaux autorisés"]</a>
|
|
||||||
</environment>
|
|
||||||
</h4>
|
|
||||||
<h4>
|
<h4>
|
||||||
<a asp-controller="Account" asp-action="Delete" >@SR["Unregister"]</a>
|
<a asp-controller="Account" asp-action="Delete" >@SR["Unregister"]</a>
|
||||||
</h4>
|
</h4>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" />
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Name" class="form-control" />
|
<input asp-for="Name" class="form-control" />
|
||||||
<span asp-validation-for="Name" class="text-danger" />
|
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -15,49 +15,49 @@
|
|||||||
<label asp-for="body" class="col-md-2 control-label"></label>
|
<label asp-for="body" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="body" class="form-control" />
|
<input asp-for="body" class="form-control" />
|
||||||
<span asp-validation-for="body" class="text-danger" />
|
<span asp-validation-for="body" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="click_action" class="col-md-2 control-label"></label>
|
<label asp-for="click_action" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="click_action" class="form-control" />
|
<input asp-for="click_action" class="form-control" />
|
||||||
<span asp-validation-for="click_action" class="text-danger" />
|
<span asp-validation-for="click_action" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="color" class="col-md-2 control-label"></label>
|
<label asp-for="color" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="color" class="form-control" />
|
<input asp-for="color" class="form-control" />
|
||||||
<span asp-validation-for="color" class="text-danger" />
|
<span asp-validation-for="color" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="icon" class="col-md-2 control-label"></label>
|
<label asp-for="icon" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="icon" class="form-control" />
|
<input asp-for="icon" class="form-control" />
|
||||||
<span asp-validation-for="icon" class="text-danger" />
|
<span asp-validation-for="icon" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="sound" class="col-md-2 control-label"></label>
|
<label asp-for="sound" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="sound" class="form-control" />
|
<input asp-for="sound" class="form-control" />
|
||||||
<span asp-validation-for="sound" class="text-danger" />
|
<span asp-validation-for="sound" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="tag" class="col-md-2 control-label"></label>
|
<label asp-for="tag" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="tag" class="form-control" />
|
<input asp-for="tag" class="form-control" />
|
||||||
<span asp-validation-for="tag" class="text-danger" />
|
<span asp-validation-for="tag" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="title" class="col-md-2 control-label"></label>
|
<label asp-for="title" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="title" class="form-control" />
|
<input asp-for="title" class="form-control" />
|
||||||
<span asp-validation-for="title" class="text-danger" />
|
<span asp-validation-for="title" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,49 +16,49 @@
|
|||||||
<label asp-for="body" class="col-md-2 control-label"></label>
|
<label asp-for="body" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="body" class="form-control" />
|
<input asp-for="body" class="form-control" />
|
||||||
<span asp-validation-for="body" class="text-danger" />
|
<span asp-validation-for="body" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="click_action" class="col-md-2 control-label"></label>
|
<label asp-for="click_action" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="click_action" class="form-control" />
|
<input asp-for="click_action" class="form-control" />
|
||||||
<span asp-validation-for="click_action" class="text-danger" />
|
<span asp-validation-for="click_action" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="color" class="col-md-2 control-label"></label>
|
<label asp-for="color" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="color" class="form-control" />
|
<input asp-for="color" class="form-control" />
|
||||||
<span asp-validation-for="color" class="text-danger" />
|
<span asp-validation-for="color" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="icon" class="col-md-2 control-label"></label>
|
<label asp-for="icon" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="icon" class="form-control" />
|
<input asp-for="icon" class="form-control" />
|
||||||
<span asp-validation-for="icon" class="text-danger" />
|
<span asp-validation-for="icon" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="sound" class="col-md-2 control-label"></label>
|
<label asp-for="sound" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="sound" class="form-control" />
|
<input asp-for="sound" class="form-control" />
|
||||||
<span asp-validation-for="sound" class="text-danger" />
|
<span asp-validation-for="sound" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="tag" class="col-md-2 control-label"></label>
|
<label asp-for="tag" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="tag" class="form-control" />
|
<input asp-for="tag" class="form-control" />
|
||||||
<span asp-validation-for="tag" class="text-danger" />
|
<span asp-validation-for="tag" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="title" class="col-md-2 control-label"></label>
|
<label asp-for="title" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="title" class="form-control" />
|
<input asp-for="title" class="form-control" />
|
||||||
<span asp-validation-for="title" class="text-danger" />
|
<span asp-validation-for="title" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -54,14 +54,14 @@
|
|||||||
<label asp-for="Status" class="col-md-2 control-label"></label>
|
<label asp-for="Status" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="Status" class="form-control" asp-items="@ViewBag.Status"></select>
|
<select asp-for="Status" class="form-control" asp-items="@ViewBag.Status"></select>
|
||||||
<span asp-validation-for="Status" class="text-danger" />
|
<span asp-validation-for="Status" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Version" class="col-md-2 control-label"></label>
|
<label asp-for="Version" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Version" class="form-control" />
|
<input asp-for="Version" class="form-control" />
|
||||||
<span asp-validation-for="Version" class="text-danger" />
|
<span asp-validation-for="Version" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
Plateforme <span class="caret"></span>
|
Plateforme <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
|
<li><a asp-controller="Bug" asp-action="Index">Bugs</a></li>
|
||||||
<li><a asp-controller="Bug" asp-action="Index">Bugs</a></li>
|
<li><a asp-controller="Bug" asp-action="Index">Bugs</a></li>
|
||||||
<li><a asp-controller="Feature" asp-action="Index">Features</a></li>
|
<li><a asp-controller="Feature" asp-action="Index">Features</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -15,49 +15,49 @@
|
|||||||
<label asp-for="AccessFailedCount" class="col-md-2 control-label"></label>
|
<label asp-for="AccessFailedCount" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="AccessFailedCount" class="form-control" />
|
<input asp-for="AccessFailedCount" class="form-control" />
|
||||||
<span asp-validation-for="AccessFailedCount" class="text-danger" />
|
<span asp-validation-for="AccessFailedCount" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Avatar" class="col-md-2 control-label"></label>
|
<label asp-for="Avatar" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Avatar" class="form-control" />
|
<input asp-for="Avatar" class="form-control" />
|
||||||
<span asp-validation-for="Avatar" class="text-danger" />
|
<span asp-validation-for="Avatar" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="ConcurrencyStamp" class="col-md-2 control-label"></label>
|
<label asp-for="ConcurrencyStamp" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="ConcurrencyStamp" class="form-control" />
|
<input asp-for="ConcurrencyStamp" class="form-control" />
|
||||||
<span asp-validation-for="ConcurrencyStamp" class="text-danger" />
|
<span asp-validation-for="ConcurrencyStamp" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DedicatedGoogleCalendar" class="col-md-2 control-label"></label>
|
<label asp-for="DedicatedGoogleCalendar" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DedicatedGoogleCalendar" class="form-control" />
|
<input asp-for="DedicatedGoogleCalendar" class="form-control" />
|
||||||
<span asp-validation-for="DedicatedGoogleCalendar" class="text-danger" />
|
<span asp-validation-for="DedicatedGoogleCalendar" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DiskQuota" class="col-md-2 control-label"></label>
|
<label asp-for="DiskQuota" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DiskQuota" class="form-control" />
|
<input asp-for="DiskQuota" class="form-control" />
|
||||||
<span asp-validation-for="DiskQuota" class="text-danger" />
|
<span asp-validation-for="DiskQuota" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DiskUsage" class="col-md-2 control-label"></label>
|
<label asp-for="DiskUsage" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DiskUsage" class="form-control" />
|
<input asp-for="DiskUsage" class="form-control" />
|
||||||
<span asp-validation-for="DiskUsage" class="text-danger" />
|
<span asp-validation-for="DiskUsage" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Email" class="col-md-2 control-label"></label>
|
<label asp-for="Email" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Email" class="form-control" />
|
<input asp-for="Email" class="form-control" />
|
||||||
<span asp-validation-for="Email" class="text-danger" />
|
<span asp-validation-for="Email" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -72,7 +72,7 @@
|
|||||||
<label asp-for="FullName" class="col-md-2 control-label"></label>
|
<label asp-for="FullName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="FullName" class="form-control" />
|
<input asp-for="FullName" class="form-control" />
|
||||||
<span asp-validation-for="FullName" class="text-danger" />
|
<span asp-validation-for="FullName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -87,35 +87,35 @@
|
|||||||
<label asp-for="LockoutEnd" class="col-md-2 control-label"></label>
|
<label asp-for="LockoutEnd" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="LockoutEnd" class="form-control" />
|
<input asp-for="LockoutEnd" class="form-control" />
|
||||||
<span asp-validation-for="LockoutEnd" class="text-danger" />
|
<span asp-validation-for="LockoutEnd" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="NormalizedEmail" class="col-md-2 control-label"></label>
|
<label asp-for="NormalizedEmail" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="NormalizedEmail" class="form-control" />
|
<input asp-for="NormalizedEmail" class="form-control" />
|
||||||
<span asp-validation-for="NormalizedEmail" class="text-danger" />
|
<span asp-validation-for="NormalizedEmail" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="NormalizedUserName" class="col-md-2 control-label"></label>
|
<label asp-for="NormalizedUserName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="NormalizedUserName" class="form-control" />
|
<input asp-for="NormalizedUserName" class="form-control" />
|
||||||
<span asp-validation-for="NormalizedUserName" class="text-danger" />
|
<span asp-validation-for="NormalizedUserName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="PasswordHash" class="col-md-2 control-label"></label>
|
<label asp-for="PasswordHash" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="PasswordHash" class="form-control" />
|
<input asp-for="PasswordHash" class="form-control" />
|
||||||
<span asp-validation-for="PasswordHash" class="text-danger" />
|
<span asp-validation-for="PasswordHash" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="PhoneNumber" class="col-md-2 control-label"></label>
|
<label asp-for="PhoneNumber" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="PhoneNumber" class="form-control" />
|
<input asp-for="PhoneNumber" class="form-control" />
|
||||||
<span asp-validation-for="PhoneNumber" class="text-danger" />
|
<span asp-validation-for="PhoneNumber" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -136,7 +136,7 @@
|
|||||||
<label asp-for="SecurityStamp" class="col-md-2 control-label"></label>
|
<label asp-for="SecurityStamp" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="SecurityStamp" class="form-control" />
|
<input asp-for="SecurityStamp" class="form-control" />
|
||||||
<span asp-validation-for="SecurityStamp" class="text-danger" />
|
<span asp-validation-for="SecurityStamp" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -151,7 +151,7 @@
|
|||||||
<label asp-for="UserName" class="col-md-2 control-label"></label>
|
<label asp-for="UserName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="UserName" class="form-control" />
|
<input asp-for="UserName" class="form-control" />
|
||||||
<span asp-validation-for="UserName" class="text-danger" />
|
<span asp-validation-for="UserName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -16,49 +16,49 @@
|
|||||||
<label asp-for="AccessFailedCount" class="col-md-2 control-label"></label>
|
<label asp-for="AccessFailedCount" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="AccessFailedCount" class="form-control" />
|
<input asp-for="AccessFailedCount" class="form-control" />
|
||||||
<span asp-validation-for="AccessFailedCount" class="text-danger" />
|
<span asp-validation-for="AccessFailedCount" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Avatar" class="col-md-2 control-label"></label>
|
<label asp-for="Avatar" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Avatar" class="form-control" />
|
<input asp-for="Avatar" class="form-control" />
|
||||||
<span asp-validation-for="Avatar" class="text-danger" />
|
<span asp-validation-for="Avatar" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="ConcurrencyStamp" class="col-md-2 control-label"></label>
|
<label asp-for="ConcurrencyStamp" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="ConcurrencyStamp" class="form-control" />
|
<input asp-for="ConcurrencyStamp" class="form-control" />
|
||||||
<span asp-validation-for="ConcurrencyStamp" class="text-danger" />
|
<span asp-validation-for="ConcurrencyStamp" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DedicatedGoogleCalendar" class="col-md-2 control-label"></label>
|
<label asp-for="DedicatedGoogleCalendar" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DedicatedGoogleCalendar" class="form-control" />
|
<input asp-for="DedicatedGoogleCalendar" class="form-control" />
|
||||||
<span asp-validation-for="DedicatedGoogleCalendar" class="text-danger" />
|
<span asp-validation-for="DedicatedGoogleCalendar" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DiskQuota" class="col-md-2 control-label"></label>
|
<label asp-for="DiskQuota" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DiskQuota" class="form-control" />
|
<input asp-for="DiskQuota" class="form-control" />
|
||||||
<span asp-validation-for="DiskQuota" class="text-danger" />
|
<span asp-validation-for="DiskQuota" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="DiskUsage" class="col-md-2 control-label"></label>
|
<label asp-for="DiskUsage" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="DiskUsage" class="form-control" />
|
<input asp-for="DiskUsage" class="form-control" />
|
||||||
<span asp-validation-for="DiskUsage" class="text-danger" />
|
<span asp-validation-for="DiskUsage" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Email" class="col-md-2 control-label"></label>
|
<label asp-for="Email" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Email" class="form-control" />
|
<input asp-for="Email" class="form-control" />
|
||||||
<span asp-validation-for="Email" class="text-danger" />
|
<span asp-validation-for="Email" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -73,7 +73,7 @@
|
|||||||
<label asp-for="FullName" class="col-md-2 control-label"></label>
|
<label asp-for="FullName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="FullName" class="form-control" />
|
<input asp-for="FullName" class="form-control" />
|
||||||
<span asp-validation-for="FullName" class="text-danger" />
|
<span asp-validation-for="FullName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -88,35 +88,35 @@
|
|||||||
<label asp-for="LockoutEnd" class="col-md-2 control-label"></label>
|
<label asp-for="LockoutEnd" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="LockoutEnd" class="form-control" />
|
<input asp-for="LockoutEnd" class="form-control" />
|
||||||
<span asp-validation-for="LockoutEnd" class="text-danger" />
|
<span asp-validation-for="LockoutEnd" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="NormalizedEmail" class="col-md-2 control-label"></label>
|
<label asp-for="NormalizedEmail" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="NormalizedEmail" class="form-control" />
|
<input asp-for="NormalizedEmail" class="form-control" />
|
||||||
<span asp-validation-for="NormalizedEmail" class="text-danger" />
|
<span asp-validation-for="NormalizedEmail" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="NormalizedUserName" class="col-md-2 control-label"></label>
|
<label asp-for="NormalizedUserName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="NormalizedUserName" class="form-control" />
|
<input asp-for="NormalizedUserName" class="form-control" />
|
||||||
<span asp-validation-for="NormalizedUserName" class="text-danger" />
|
<span asp-validation-for="NormalizedUserName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="PasswordHash" class="col-md-2 control-label"></label>
|
<label asp-for="PasswordHash" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="PasswordHash" class="form-control" />
|
<input asp-for="PasswordHash" class="form-control" />
|
||||||
<span asp-validation-for="PasswordHash" class="text-danger" />
|
<span asp-validation-for="PasswordHash" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="PhoneNumber" class="col-md-2 control-label"></label>
|
<label asp-for="PhoneNumber" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="PhoneNumber" class="form-control" />
|
<input asp-for="PhoneNumber" class="form-control" />
|
||||||
<span asp-validation-for="PhoneNumber" class="text-danger" />
|
<span asp-validation-for="PhoneNumber" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -130,15 +130,15 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="PostalAddressId" class="control-label col-md-2">PostalAddressId</label>
|
<label asp-for="PostalAddressId" class="control-label col-md-2">PostalAddressId</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<select asp-for="PostalAddressId" class="form-control" />
|
<select asp-for="PostalAddressId" class="form-control" ></select>
|
||||||
<span asp-validation-for="PostalAddressId" class="text-danger" />
|
<span asp-validation-for="PostalAddressId" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="SecurityStamp" class="col-md-2 control-label"></label>
|
<label asp-for="SecurityStamp" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="SecurityStamp" class="form-control" />
|
<input asp-for="SecurityStamp" class="form-control" />
|
||||||
<span asp-validation-for="SecurityStamp" class="text-danger" />
|
<span asp-validation-for="SecurityStamp" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -153,7 +153,7 @@
|
|||||||
<label asp-for="UserName" class="col-md-2 control-label"></label>
|
<label asp-for="UserName" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="UserName" class="form-control" />
|
<input asp-for="UserName" class="form-control" />
|
||||||
<span asp-validation-for="UserName" class="text-danger" />
|
<span asp-validation-for="UserName" class="text-danger" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -1,16 +1,20 @@
|
|||||||
{
|
{
|
||||||
"tools": {
|
"env": [],
|
||||||
|
"build" :{
|
||||||
|
|
||||||
|
},
|
||||||
|
"prepare": {
|
||||||
"make": {}
|
"make": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"post_build": {
|
||||||
"yavsc": {
|
"yavsc": {
|
||||||
"type": "make",
|
"type": "make",
|
||||||
"source" : {
|
"source" : {
|
||||||
"github": "pazof/yavsc",
|
"github": "pazof/yavsc",
|
||||||
"branch": "vnext"
|
"branch": "vnext"
|
||||||
},
|
},
|
||||||
"env": [],
|
|
||||||
"args": []
|
"args": []
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"emails": []
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@ namespace cli
|
|||||||
{
|
{
|
||||||
public partial class Program
|
public partial class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
CommandOption rootCommandHelpOption = null;
|
CommandOption rootCommandHelpOption = null;
|
||||||
|
@ -1,32 +1,10 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
|
||||||
public class CiBuildSettings
|
public class CiBuildSettings
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// A command specification (a system command),
|
|
||||||
/// in order to reference some trusted server-side process
|
|
||||||
/// </summary>
|
|
||||||
public class Command
|
|
||||||
{
|
|
||||||
[Required]
|
|
||||||
[JsonPropertyAttribute("path")]
|
|
||||||
public string Path { get; set; }
|
|
||||||
|
|
||||||
[JsonPropertyAttribute("args")]
|
|
||||||
public string[] Args { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Specific variables to this process
|
|
||||||
/// </summary>
|
|
||||||
/// <value></value>
|
|
||||||
///
|
|
||||||
[JsonPropertyAttribute("env")]
|
|
||||||
public string[] Environment { get; set; }
|
|
||||||
|
|
||||||
[JsonPropertyAttribute("working_dir")]
|
|
||||||
public string WorkingDir { get; set; }
|
|
||||||
}
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The global process environment variables
|
/// The global process environment variables
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -40,7 +18,7 @@ public class CiBuildSettings
|
|||||||
/// <value></value>
|
/// <value></value>
|
||||||
[Required]
|
[Required]
|
||||||
[JsonPropertyAttribute("build")]
|
[JsonPropertyAttribute("build")]
|
||||||
public Command Build { get; set; }
|
public CommandPipe Build { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A preparing command.
|
/// A preparing command.
|
||||||
@ -49,7 +27,7 @@ public class CiBuildSettings
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[JsonPropertyAttribute("prepare")]
|
[JsonPropertyAttribute("prepare")]
|
||||||
public Command Prepare { get; set; }
|
public CommandPipe Prepare { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A post-production command,
|
/// A post-production command,
|
||||||
@ -59,7 +37,7 @@ public class CiBuildSettings
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[JsonPropertyAttribute("post_build")]
|
[JsonPropertyAttribute("post_build")]
|
||||||
public Command PostBuild { get; set; }
|
public CommandPipe PostBuild { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Additional emails, as dest of notifications
|
/// Additional emails, as dest of notifications
|
||||||
|
36
src/cli/Settings/Command.cs
Normal file
36
src/cli/Settings/Command.cs
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
/// <summary>
|
||||||
|
/// A command specification (a system command),
|
||||||
|
/// in order to reference some trusted server-side process
|
||||||
|
/// </summary>
|
||||||
|
public class Command
|
||||||
|
{
|
||||||
|
[Required]
|
||||||
|
[JsonPropertyAttribute("path")]
|
||||||
|
public string Path { get; set; }
|
||||||
|
|
||||||
|
[JsonPropertyAttribute("args")]
|
||||||
|
public string[] Args { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Specific variables for this process
|
||||||
|
/// </summary>
|
||||||
|
/// <value></value>
|
||||||
|
[JsonPropertyAttribute("env")]
|
||||||
|
public string[] Environment { get; set; }
|
||||||
|
|
||||||
|
public virtual Process Start(string workingDir=null, bool redirectInput=false, bool redirectOutput=false)
|
||||||
|
{
|
||||||
|
var procStart = new ProcessStartInfo(Path, string.Join(" ",Args));
|
||||||
|
procStart.WorkingDirectory = workingDir;
|
||||||
|
procStart.UseShellExecute = false;
|
||||||
|
procStart.RedirectStandardInput = true;
|
||||||
|
procStart.RedirectStandardOutput = true;
|
||||||
|
procStart.RedirectStandardError = false;
|
||||||
|
return Process.Start(procStart);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
64
src/cli/Settings/CommandPipe.cs
Normal file
64
src/cli/Settings/CommandPipe.cs
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class CommandPipe
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
[JsonPropertyAttribute("pipe")]
|
||||||
|
public Command[] Pipe { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[JsonPropertyAttribute("working_dir")]
|
||||||
|
public string WorkingDir { get; set; }
|
||||||
|
|
||||||
|
public virtual int Run()
|
||||||
|
{
|
||||||
|
Process latest = null;
|
||||||
|
Queue<Process> runQueue = new Queue<Process>();
|
||||||
|
Queue<Task> joints = new Queue<Task>();
|
||||||
|
if (Pipe.Length == 0) return -1;
|
||||||
|
if (Pipe.Length == 1)
|
||||||
|
{
|
||||||
|
latest = Pipe[0].Start();
|
||||||
|
latest.WaitForExit();
|
||||||
|
return latest.ExitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < Pipe.Length; i++)
|
||||||
|
{
|
||||||
|
Process newProcess = null;
|
||||||
|
var cmd = Pipe[i];
|
||||||
|
bool isNotLast = (i + 1) >= Pipe.Length;
|
||||||
|
|
||||||
|
if (latest != null) // i.e. isNotFirst
|
||||||
|
{
|
||||||
|
newProcess = cmd.Start(WorkingDir, true, isNotLast);
|
||||||
|
var jt = Task.Run(async () =>
|
||||||
|
{
|
||||||
|
while (!latest.HasExited && !newProcess.HasExited)
|
||||||
|
{
|
||||||
|
string line = await latest.StandardOutput.ReadLineAsync();
|
||||||
|
if (line != null)
|
||||||
|
await newProcess.StandardInput.WriteLineAsync(line);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
joints.Enqueue(jt);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newProcess = cmd.Start(WorkingDir, false, isNotLast);
|
||||||
|
Task ending = Task.Run(() => { latest.WaitForExit(); });
|
||||||
|
joints.Enqueue(ending);
|
||||||
|
}
|
||||||
|
latest = newProcess;
|
||||||
|
runQueue.Enqueue(latest);
|
||||||
|
}
|
||||||
|
while (runQueue.Count > 0)
|
||||||
|
(latest = runQueue.Dequeue()).WaitForExit();
|
||||||
|
return latest.ExitCode;
|
||||||
|
}
|
||||||
|
}
|
@ -6,19 +6,15 @@
|
|||||||
<version>$version$</version>
|
<version>$version$</version>
|
||||||
<authors>Paul Schneider</authors>
|
<authors>Paul Schneider</authors>
|
||||||
<owners>Paul Schneider</owners>
|
<owners>Paul Schneider</owners>
|
||||||
<licenseUrl>https://github.com/pazof/yavsc/blob/vnext/Yavsc/License.md</licenseUrl>
|
<License>https://github.com/pazof/yavsc/blob/vnext/LICENSE</License>
|
||||||
<projectUrl>https://github.com/pazof/yavsc/README.md</projectUrl>
|
<projectUrl>https://github.com/pazof/yavsc/blob/vnext/README.md</projectUrl>
|
||||||
<iconUrl>https://github.com/pazof/yavsc/blob/vnext/Yavsc/wwwroot/images/yavsc.png</iconUrl>
|
<iconUrl>http://yavsc.pschneider.fr/images/yavsc.png</iconUrl>
|
||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||||
<description>
|
<description>A command line interface to Yavsc server API's</description>
|
||||||
A command line interface to Yavsc server runtime
|
<tags></tags>
|
||||||
</description>
|
|
||||||
<summary>
|
|
||||||
</summary>
|
|
||||||
<tags>Blog, POS, Web API</tags>
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="Yavsc.Server" version="$version$"></dependency>
|
<dependency id="Yavsc.Server" version="$version$"></dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
<file src="bin/$config$/dnx451/cli.dll" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
|
<file src="bin/$config$/dnx451/cli.dll" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
|
||||||
|
96
src/cli/jsonSchema
Normal file
96
src/cli/jsonSchema
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
|
"title": "CiBuildSettings",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"build"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"env": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"minLength": 1,
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Command"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prepare": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Command"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"post_build": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Command"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"emails": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"definitions": {
|
||||||
|
"Command": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"path"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"path": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"args": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"working_dir": {
|
||||||
|
"type": [
|
||||||
|
"null",
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
96
src/cli/paul-ci.shema.json
Normal file
96
src/cli/paul-ci.shema.json
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
|
"title": "CiBuildSettings",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"build"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"env": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"minLength": 1,
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Command"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prepare": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Command"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"post_build": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Command"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"emails": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"definitions": {
|
||||||
|
"Command": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"path"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"path": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"args": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"type": [
|
||||||
|
"array",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"working_dir": {
|
||||||
|
"type": [
|
||||||
|
"null",
|
||||||
|
"string"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -65,8 +65,8 @@
|
|||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {
|
"dnx451": {
|
||||||
"System.Net": "4.0.0.0",
|
"System.Net": {},
|
||||||
"System.Xml": "4.0.0.0"
|
"System.Xml": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user