refactoring: --YavscLib-- => Yavsc

This commit is contained in:
Paul Schneider 2017-05-27 16:22:58 +02:00
commit 776b7dae21
102 changed files with 216 additions and 209 deletions

View file

@ -4,13 +4,13 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Access
{
using YavscLib;
using Yavsc;
public class Ban : IBaseTrackedEntity
{
public DateTime DateCreated
{
get; set;
get; set;
}
public DateTime DateModified

View file

@ -3,7 +3,7 @@ namespace Yavsc.Models.Access
using System.ComponentModel.DataAnnotations.Schema;
using Models.Relationship;
using Newtonsoft.Json;
using YavscLib;
using Yavsc;
public class CircleAuthorizationToBlogPost : ICircleAuthorization
{
@ -19,4 +19,4 @@ namespace Yavsc.Models.Access
public virtual Circle Allowed { get; set; }
}
}
}

View file

@ -12,7 +12,7 @@ namespace Yavsc.Models
{
using Relationship;
using Forms;
using YavscLib;
using Yavsc;
using Auth;
using Billing;
using Musical;

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models
{
using YavscLib;
using Yavsc;
public partial class AccountBalance: IAccountBalance {
[Key]

View file

@ -5,7 +5,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Billing
{
using YavscLib.Billing;
using Yavsc.Billing;
public class CommandLine : ICommandLine {

View file

@ -9,7 +9,7 @@ namespace Yavsc.Models.Billing
{
using Models.Workflow;
using Newtonsoft.Json;
using YavscLib.Workflow;
using Yavsc.Workflow;
public partial class Estimate : IEstimate
{

View file

@ -1,4 +1,4 @@
using YavscLib.Billing;
using Yavsc.Billing;
namespace Yavsc.Models.Billing   {
public class FixedImpacter : IBillingImpacter

View file

@ -8,9 +8,9 @@ namespace Yavsc.Models.Billing
using Newtonsoft.Json;
using Workflow;
using Yavsc.Models.Payment;
using YavscLib;
using YavscLib.Billing;
using YavscLib.Workflow;
using Yavsc;
using Yavsc.Billing;
using Yavsc.Workflow;
public abstract class NominativeServiceCommand : IBaseTrackedEntity, IQuery, IIdentified<long>
{

View file

@ -1,4 +1,4 @@
using YavscLib.Billing;
using Yavsc.Billing;
namespace Yavsc.Models.Billing   {
public class ProportionalImpacter : IBillingImpacter

View file

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YavscLib.Billing;
using Yavsc.Billing;
namespace Yavsc.Models.Billing {

View file

@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using Newtonsoft.Json;
using Yavsc.Models.Access;
using YavscLib;
using Yavsc;
namespace Yavsc.Models
{
@ -27,7 +27,7 @@ namespace Yavsc.Models
public string AuthorId { get; set; }
[Display(Name="Auteur")]
[ForeignKey("AuthorId"),JsonIgnore]
public ApplicationUser Author { set; get; }
[Display(Name="Visible")]
@ -56,7 +56,7 @@ namespace Yavsc.Models
{
get; set;
}
[InverseProperty("Target")]
[Display(Name="Liste de contrôle d'accès")]
public virtual List<CircleAuthorizationToBlogPost> ACL { get; set; }

View file

@ -4,7 +4,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Chat
{
using YavscLib;
using Yavsc;
public class Connection : IConnection
{
@ -18,5 +18,5 @@ namespace Yavsc.Models.Chat
public string UserAgent { get; set; }
public bool Connected { get; set; }
}
}

View file

@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Models.Workflow;
using YavscLib;
using Yavsc;
namespace Yavsc.Models.Haircut
{

View file

@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using YavscLib.Billing;
using Yavsc.Billing;
namespace Yavsc.Models.Haircut
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using YavscLib.Billing;
using Yavsc.Billing;
namespace Yavsc.Models.Haircut
{

View file

@ -1,5 +1,5 @@
using System;
namespace YavscLib.Haircut
namespace Yavsc.Haircut
{
public interface IProviderInfo
{

View file

@ -1,4 +1,4 @@
namespace YavscLib
namespace Yavsc
{
public interface IHairPrestation
{

View file

@ -2,7 +2,7 @@ using System;
using System.ComponentModel.DataAnnotations;
using Yavsc.Models.Auth;
using Yavsc.Models.Relationship;
using YavscLib;
using Yavsc;
namespace Yavsc.Models.Haircut.Views
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using YavscLib;
using Yavsc;
namespace Yavsc.Models.IT.Modeling
{
@ -37,4 +37,4 @@ namespace Yavsc.Models.IT.Modeling
public abstract IWord<TLetter> CreateWord(TLetter letter);
}
}
}

View file

@ -1,5 +1,5 @@
using YavscLib;
using Yavsc;
namespace Yavsc.Models.IT.Modeling
{
@ -13,4 +13,4 @@ namespace Yavsc.Models.IT.Modeling
}
}
}
}

View file

@ -5,19 +5,19 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Identity
{
using YavscLib;
using Yavsc;
[JsonObject]
public class GivenGoogleCloudMobileDeclaration : GoogleCloudMobileDeclaration, IGCMDeclaration {
public class GivenGoogleCloudMobileDeclaration : GoogleCloudMobileDeclaration, IGCMDeclaration {
public DateTime? LatestActivityUpdate { get; set; }
}
public class GoogleCloudMobileDeclaration {
[Required]
public string GCMRegistrationId { get; set; }
[Key,Required]
public string DeviceId { get; set; }
@ -27,8 +27,8 @@ namespace Yavsc.Models.Identity
public string DeviceOwnerId { get; set; }
public DateTime DeclarationDate { get; set; }
[JsonIgnore,ForeignKey("DeviceOwnerId")]
public virtual ApplicationUser DeviceOwner { get; set; }
public virtual ApplicationUser DeviceOwner { get; set; }
}

View file

@ -24,7 +24,7 @@ using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Messaging
{
using Interfaces.Workflow;
using YavscLib;
using Yavsc;
/// <summary>
/// Base event.

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using YavscLib;
using Yavsc;
namespace Yavsc.Models.Musical.Profiles
{
@ -18,4 +18,4 @@ namespace Yavsc.Models.Musical.Profiles
}
}
}
}

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using YavscLib;
using Yavsc;
namespace Yavsc.Models.Musical.Profiles
{
@ -13,4 +13,4 @@ namespace Yavsc.Models.Musical.Profiles
get; set;
}
}
}
}

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow;
using YavscLib;
using Yavsc;
namespace Yavsc.Models.Musical.Profiles
{
@ -10,7 +10,7 @@ namespace Yavsc.Models.Musical.Profiles
{
get; set;
}
[ForeignKeyAttribute("UserId")]
public virtual PerformerProfile User { get; set; }
public long InstrumentId { get; set; }
@ -18,4 +18,4 @@ namespace Yavsc.Models.Musical.Profiles
[ForeignKeyAttribute("InstrumentId")]
public virtual Instrument Tool { get; set; }
}
}
}

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Payment {
using YavscLib;
using Yavsc;
using Relationship;
public class PayPalPayment : IBaseTrackedEntity

View file

@ -8,7 +8,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Workflow
{
using Yavsc.Models.Market;
using YavscLib;
using Yavsc;
public class Activity : IBaseTrackedEntity, IActivity
{

View file

@ -3,20 +3,20 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Workflow
{
using YavscLib;
using Yavsc;
public class CoWorking: ICoWorking
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {get; set; }
public string PerformerId { get; set; }
public string WorkingForId { get; set; }
[ForeignKey("PerformerId")]
public virtual PerformerProfile Performer { get; set; }
[ForeignKey("WorkingForId")]
public virtual ApplicationUser WorkingFor { get; set; }
}
}
}

View file

@ -4,7 +4,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Workflow
{
using YavscLib;
using Yavsc;
public class CommandForm : ICommandForm
{
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@ -12,12 +12,12 @@ namespace Yavsc.Models.Workflow
public string ActionName { get; set; }
public string Title { get; set; }
public string Title { get; set; }
[Required]
public string ActivityCode { get; set; }
[ForeignKey("ActivityCode"),JsonIgnore]
public virtual Activity Context { get; set; }
}
}
}

View file

@ -6,7 +6,7 @@ namespace Yavsc.Models.Workflow
{
using System;
using Models.Relationship;
using YavscLib.Workflow;
using Yavsc.Workflow;
public class PerformerProfile : IPerformerProfile {

View file

@ -4,11 +4,11 @@ using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Workflow.Profiles
{
using Models.Workflow;
using YavscLib;
using Yavsc;
public class FormationSettings : ISpecializationSettings
{
public virtual List<CoWorking> CoWorking { get; set; }
[Key]
public string UserId
{
@ -16,4 +16,4 @@ namespace Yavsc.Models.Workflow.Profiles
}
}
}
}

View file

@ -7,7 +7,7 @@ namespace Yavsc.Models.Workflow
using System.Collections.Generic;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using YavscLib.Billing;
using Yavsc.Billing;
/// <summary>
/// Query, for a date, with a given perfomer, at this given place.