当前位置: 首页>>代码示例>>C#>>正文


C# Grace类代码示例

本文整理汇总了C#中Grace的典型用法代码示例。如果您正苦于以下问题:C# Grace类的具体用法?C# Grace怎么用?C# Grace使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Grace类属于命名空间,在下文中一共展示了Grace类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Member

        public Member(Grace.Models.Member member)
        {
            MemberModel = member;

            if (member.MemberID != 0)
            {
                if (member.MemberRelations.Count > 0)
                {
                    HeadOfHousehold = "Self";
                    HeadMemberID = member.MemberID;
                    MemberRelations = member.MemberRelations.ToList();
                }
                else
                {
                    if (member.MemberRelations1.Count > 0)
                    {
                        HeadOfHousehold = member.MemberRelations1[0].Member.FullName;
                        HeadMemberID = member.MemberRelations1[0].HeadMemberID;
                        MemberRelations = member.MemberRelations1[0].Member.MemberRelations.ToList();
                    }
                    else
                    {
                        HeadOfHousehold = "Self";
                        HeadMemberID = member.MemberID;
                        MemberRelations = member.MemberRelations1.ToList();
                    }
                }
            }
        }
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:29,代码来源:Member.cs

示例2: Create

 public ActionResult Create(Grace.ViewModels.MemberRelation memberRelation)
 {
     if (TryValidateModel(memberRelation.MemberRelationModel))
         try
         {
             _repository.Add(memberRelation.MemberRelationModel);
             return RedirectToAction(Config.ActionVariables.Edit, Config.ControllerVariables.Member, new {id=memberRelation.MemberRelationModel.HeadMemberID});
         }
         catch
         {
             return View(memberRelation);
         }
     else
         return View(memberRelation);
 }
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:15,代码来源:MemberRelationController.cs

示例3: Create

 public ActionResult Create(Grace.ViewModels.SSClassTeacher ssClassTeacher)
 {
     if (TryValidateModel(ssClassTeacher.SSClassTeacherModel))
         try
         {
             _repository.Add(ssClassTeacher.SSClassTeacherModel);
             return RedirectToAction(Config.ActionVariables.Edit, Config.ControllerVariables.SSClass, new { id = ssClassTeacher.SSClassTeacherModel.SSClassID });
         }
         catch
         {
             return View(ssClassTeacher);
         }
     else
         return View(ssClassTeacher);
 }
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:15,代码来源:SSClassTeacherController.cs

示例4: Create

 public ActionResult Create(Grace.ViewModels.Member member)
 {
     if (TryValidateModel(member.MemberModel))
         try
         {
             _repository.Add(member.MemberModel);
             return RedirectToAction(Config.ActionVariables.Index);
         }
         catch
         {
             return View(member);
         }
     else
         return View(member);
 }
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:15,代码来源:MemberController.cs

示例5: Create

 public ActionResult Create(Grace.Models.Committee committee)
 {
     if (ModelState.IsValid)
         try
         {
             _repository.Add(committee);
             return RedirectToAction(Config.ActionVariables.Index);
         }
         catch
         {
             return View(committee);
         }
     else
         return View(committee);
 }
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:15,代码来源:CommitteeController.cs

示例6: Create

 public ActionResult Create(Grace.ViewModels.CommitteeMember committeeMember)
 {
     if (TryValidateModel(committeeMember.CommitteeMemberModel))
         try
         {
             _repository.Add(committeeMember.CommitteeMemberModel);
             return RedirectToAction(Config.ActionVariables.Edit, Config.ControllerVariables.Committee, new { id = committeeMember.CommitteeMemberModel.CommitteeID });
         }
         catch
         {
             return View(committeeMember);
         }
     else
         return View(committeeMember);
 }
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:15,代码来源:CommitteeMemberController.cs

示例7: DeleteSSClassTeacher

 partial void DeleteSSClassTeacher(Grace.Models.SSClassTeacher instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例8: InsertSSClassMember

 partial void InsertSSClassMember(Grace.Models.SSClassMember instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例9: UpdateSSClass

 partial void UpdateSSClass(Grace.Models.SSClass instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例10: DeleteSSAttendance

 partial void DeleteSSAttendance(Grace.Models.SSAttendance instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例11: InsertSSAttendance

 partial void InsertSSAttendance(Grace.Models.SSAttendance instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例12: UpdateService

 partial void UpdateService(Grace.Models.Service instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例13: DeletePastor

 partial void DeletePastor(Grace.Models.Pastor instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例14: UpdatePastor

 partial void UpdatePastor(Grace.Models.Pastor instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs

示例15: InsertPastor

 partial void InsertPastor(Grace.Models.Pastor instance);
开发者ID:tdietz,项目名称:Grace-Maintenance,代码行数:1,代码来源:Copy+of+GraceDB.designer.cs


注:本文中的Grace类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。