Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Esempio n. 1
0
 partial void DeleteIssueType(IssueType instance);
Esempio n. 2
0
 partial void InsertIssueType(IssueType instance);
Esempio n. 3
0
 partial void UpdateIssueType(IssueType instance);
Esempio n. 4
0
		private void detach_IssueTypes(IssueType entity)
		{
			this.SendPropertyChanging();
			entity.Version = null;
		}
Esempio n. 5
0
		private void attach_IssueTypes(IssueType entity)
		{
			this.SendPropertyChanging();
			entity.IssueTypeDetail = this;
		}
        private static void AddIssueTypePageIssue(Issue issue, IssueType issueType, Version version, Application application, Project project, Session session, Quilt4DataContext context)
        {
            //var dataDictionary = JsonConvert.SerializeObject(issue.IssueDatas.ToDictionary(data => data.Name, data => data.Value));

            //var issueTypePageIssue = new IssueTypePageIssue
            //{
            //    ProjectKey = project.ProjectKey,
            //    ApplicationKey = application.ApplicationKey,
            //    VersionKey = version.VersionKey,
            //    IssueTypeKey = issueType.IssueTypeKey,
            //    Data = dataDictionary,
            //    Enviroment = session.Enviroment,
            //    ApplicationUserName = session.ApplicationUser != null ? session.ApplicationUser.UserName : "******",
            //    LastUpdateServerTime = issue.CreationServerTime,                
            //};

            //context.IssueTypePageIssues.InsertOnSubmit(issueTypePageIssue);
        }
        private static void AddUpdateIssueTypePageIssueType(Quilt4DataContext context, IssueType issueType, Version version, Application application, Project project)
        {
            //var issueTypePageIssueType = context.IssueTypePageIssueTypes.SingleOrDefault(x => x.IssueTypeKey == issueType.IssueTypeKey);

            //if (issueTypePageIssueType == null)
            //{
            //    var newIssueTypePageIssueType = new IssueTypePageIssueType
            //    {
            //        IssueTypeKey = issueType.IssueTypeKey,
            //        ProjectKey = project.ProjectKey,
            //        ApplicationKey = application.ApplicationKey,
            //        VersionKey = version.VersionKey,
            //        ProjectName = project.Name,
            //        ApplicationName = application.Name,
            //        VersionNumber = version.VersionNumber,
            //        Level = issueType.Level,
            //        Message = issueType.Message,
            //        StackTrace = issueType.StackTrace,
            //        Ticket = issueType.Ticket,
            //        Type = issueType.Type,
            //    };

            //    context.IssueTypePageIssueTypes.InsertOnSubmit(newIssueTypePageIssueType);
            //}
        }
        private static void AddUpdateVersionPageIssueType(Quilt4DataContext context, IssueType issueType, Version version, Application application, Project project)
        {
            //var versionPageIssueType = context.VersionPageIssueTypes.SingleOrDefault(x => x.IssueTypeKey == issueType.IssueTypeKey);
            //var issueCount = issueType.Issues.Count;
            //var lastIssueServerTime = issueType.Issues.Max(x => x.CreationServerTime);
            //var enviroments = string.Join(";", issueType.Issues.Select(x => x.Session).Select(y => y.Enviroment).Distinct());

            //if (versionPageIssueType != null)
            //{
            //    versionPageIssueType.IssueCount = issueCount;
            //    versionPageIssueType.LastIssueServerTime = lastIssueServerTime;
            //    versionPageIssueType.Enviroments = enviroments;
            //}
            //else
            //{
            //    var newVersionPageIssueType = new VersionPageIssueType
            //    {
            //        IssueTypeKey = issueType.IssueTypeKey,
            //        ProjectKey = project.ProjectKey,
            //        ApplicationKey = application.ApplicationKey,
            //        VersionKey = version.VersionKey,
            //        Enviroments = enviroments,
            //        IssueCount = issueCount,
            //        LastIssueServerTime = lastIssueServerTime,
            //        Level = issueType.Level,
            //        Message = issueType.Message,
            //        Ticket = issueType.Ticket,
            //        Type = issueType.Type
            //    };

            //    context.VersionPageIssueTypes.InsertOnSubmit(newVersionPageIssueType);
            //}
        }