• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IContactRepository类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: AddressBookViewModel

        public AddressBookViewModel(IContactRepository repository)
        {
            AddNewContactCommand = new DelegateCommand(parameter => ExecuteAddNewContact(), parameter => CanExecuteAddNewContact());
            SaveContactCommand = new DelegateCommand(parameter => ExecuteSaveContact(), parameter => CanExecuteSaveContact());

            Contacts = new ObservableCollection<Contact>(repository.GetContacts());
        }
开发者ID:raeffs,项目名称:wpf-demo,代码行数:7,代码来源:AddressBookViewModel.cs


示例2: ContactFolderContactsController

 public ContactFolderContactsController(IContactFolderRepository contactfolderRepository, ICompanyRepository companyRepository, IContactRepository contactRepository, IContactFolderContactRepository contactfoldercontactRepository)
 {
     this.contactfolderRepository = contactfolderRepository;
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.contactfoldercontactRepository = contactfoldercontactRepository;
 }
开发者ID:absdk,项目名称:RslSDK,代码行数:7,代码来源:ContactFolderContactsController.cs


示例3: ContactService

        public ContactService(IContactAuthenticationHandler authenticationHandler,IContactRepository contactRepository, 
            IContactSecondaryRepository secondaryContactRepository,
            IContactSynchroniser contactSynchroniser
            )
        {
            if (contactRepository == null)
            {
                throw new ArgumentNullException("contactRepository");
            }
            _contactRepository = contactRepository;
            if (secondaryContactRepository == null)
            {
                throw new ArgumentNullException("secondaryContactRepository");
            }
            _secondaryContactRepository = secondaryContactRepository;

            if (authenticationHandler == null)
            {
                throw new ArgumentNullException("authenticationHandler");
            }
            _authenticationHandler = authenticationHandler;
            if (contactSynchroniser == null)
            {
                throw new ArgumentNullException("contactSynchroniser");
            }
            _contactSynchroniser = contactSynchroniser;
        }
开发者ID:jamesdrever,项目名称:cpx,代码行数:27,代码来源:ContactService.cs


示例4: ContactViewModelBuilder

 public ContactViewModelBuilder(IContactRepository contactRepository, ICostCentreRepository costCentreRepository, IContactTypeRepository contactTypeRepository, IUserRepository userRepository)
 {
     _contactRepository = contactRepository;
     _costCentreRepository = costCentreRepository;
     _contactTypeRepository = contactTypeRepository;
     _userRepository = userRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ContactViewModelBuilder.cs


示例5: RegisterController

 public RegisterController(IContactRepository contacts, IStoreRepository stores,
     IContactQueue queue)
 {
     contactRepository = contacts;
     storeRepository = stores;
     contactQueue = queue;
 }
开发者ID:brianhprince,项目名称:FBwithWA,代码行数:7,代码来源:RegisterController.cs


示例6: ContactService

 static ContactService()
 {
     ContactService.unitOfWork = new UnitOfWork();
     ContactService.repository = 
         RepositoryFactory.GetRepository<IContactRepository,
         Contact>(ContactService.unitOfWork);
 }
开发者ID:pachinko,项目名称:NDDDCS,代码行数:7,代码来源:ContactService.cs


示例7: CompanyEmailsController

 public CompanyEmailsController(ICompanyRepository companyRepository, IContactRepository contactRepository, IUserRepository userRepository, ICompanyEmailRepository companyemailRepository)
 {
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.userRepository = userRepository;
     this.companyemailRepository = companyemailRepository;
 }
开发者ID:absdk,项目名称:RslSDK,代码行数:7,代码来源:CompanyEmailsController.cs


示例8: Create

        public ActionResult Create(Contact contact, IContactRepository contacts)
        {
            if (contact.Name != "123")
            {
                this.ModelState.AddModelError("Name", "Must be 123");
            }

            if (!this.ModelState.IsValid)
            {
                return View();
            }

            //Contact contact = new Contact();

            //UpdateModel(contact);

            //if (string.IsNullOrEmpty(contact.Name))
            //{
            //}

            //
            //  Update database
            //

            return View();
        }
开发者ID:oricalvo,项目名称:course-nice-mvc-2015-10,代码行数:26,代码来源:HomeController.cs


示例9: JobAppService

 /// <summary>
 ///In constructor, we can get needed classes/interfaces.
 ///They are sent here by dependency injection system automatically.
 /// </summary>
 public JobAppService(IJobRepository jobRepository, UserManager userManager, IAccountRepository accountRepository, IContactRepository contactrepository)
 {
     _jobRepository = jobRepository;
     _userManager = userManager;
     _accountRepository = accountRepository;
     _contactRepository = contactrepository;
    
 }
开发者ID:jonquickqsense,项目名称:projectkorai,代码行数:12,代码来源:JobAppService.cs


示例10: EnquiriesController

 public EnquiriesController(IContactRepository contactRepository, IAddressRepository addressRepository, IEnquiryRepository enquiryRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquiryDetailsRepository)
 {
     this.contactRepository = contactRepository;
     this.addressRepository = addressRepository;
     this.enquiryRepository = enquiryRepository;
     this.statusRepository = statusRepository;
     this.enquiryDetailsRepository = enquiryDetailsRepository;
 }
开发者ID:harlalkap,项目名称:BusinessFlow,代码行数:8,代码来源:EnquiriesController.cs


示例11: ContactController

 public ContactController(IUnitOfWork uow, IContactRepository ContactRepository,
     IUserAccountRepository DefineUserRepository)
 {
     _uow = uow;
     _RContact = ContactRepository;
     _RDefineUser = DefineUserRepository;
     EDefineUser = new UserAccountExtentions(_RDefineUser);
     EContact = new ContactExtensions(_RContact, _RDefineUser);
 }
开发者ID:Chitva,项目名称:Ganjine,代码行数:9,代码来源:ContactController.cs


示例12: ContactController

        public ContactController(IContactRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ContactRepository = repository;
        }
开发者ID:nubiancc,项目名称:frapid,代码行数:9,代码来源:ContactController.cs


示例13: ContactHandler

 /// <summary>
 /// DI
 /// </summary>
 /// <param name="contactRepository"></param>
 /// <param name="contactFactory"></param>
 /// <param name="entityRepository"></param>
 public ContactHandler(
     IContactRepository contactRepository,
     IContactFactory contactFactory,
     IEntityRepository<IEndowmentEntity> entityRepository)
 {
     _contactRepository = contactRepository;
     _contactFactory = contactFactory;
     _entityRepository = entityRepository;
 }
开发者ID:Apostol59,项目名称:Endowment,代码行数:15,代码来源:ContactHandler.cs


示例14: ContactCalendarEventsHub

 public ContactCalendarEventsHub(IContactRepository contactRepository, IEnumerable<ICalendarProvider> calendarProviders, ILoginProvider sessionProvider, ILoggerFactory loggerFactory)
 {
     Debug.Print("ContactCalendarEventsHub.ctor()");
     _contactRepository = contactRepository;
     _calendarProviders = calendarProviders.ToArray();
     _sessionProvider = sessionProvider;
     _logger = loggerFactory.CreateLogger(GetType());
     _logger.Trace("ContactCalendarEventsHub.ctor(calendarProviders:{0})", string.Join(",", _calendarProviders.Select(cp=>cp.GetType().Name)));
 }
开发者ID:CallWall,项目名称:CallWall.Web,代码行数:9,代码来源:ContactCalendarEventsHub.cs


示例15: AccountsController

 public AccountsController(IContactRepository contactRepository, IAddressRepository addressRepository, IEnquiryRepository enquiryRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquiryDetailsRepository, IClientRegisterRepository clientRegisterRepository)
 {
     this.contactRepository = contactRepository;
     this.addressRepository = addressRepository;
     this.enquiryRepository = enquiryRepository;
     this.statusRepository = statusRepository;
     this.enquiryDetailsRepository = enquiryDetailsRepository;
     this.clientRegisterRepository = clientRegisterRepository;
 }
开发者ID:harlalkap,项目名称:BusinessFlow,代码行数:9,代码来源:AccountsController.cs


示例16: ContactGalleryAlbumsHub

 public ContactGalleryAlbumsHub(IContactRepository contactRepository, IEnumerable<IGalleryProvider> galleryProviders, ILoginProvider sessionProvider, ILoggerFactory loggerFactory)
 {
     Debug.Print("ContactGalleryAlbumsHub.ctor()");
     _contactRepository = contactRepository;
     _galleryProviders = galleryProviders.ToArray();
     _sessionProvider = sessionProvider;
     _logger = loggerFactory.CreateLogger(GetType());
     _logger.Trace("ContactGalleryAlbumsHub.ctor(galleryProviders:{0})", string.Join(",", _galleryProviders.Select(cp => cp.GetType().Name)));
 }
开发者ID:CallWall,项目名称:CallWall.Web,代码行数:9,代码来源:ContactGalleryAlbumsHub.cs


示例17: ContactService

        public ContactService(IUnitOfWork unitOfWork, IContactRepository contactRepository)
        {
            if (unitOfWork == null)
                throw new ArgumentNullException("unitOfWork");
            if (contactRepository == null)
                throw new ArgumentNullException("contactRepository");

            _unitOfWork = unitOfWork;
            _contactRepository = contactRepository;
        }
开发者ID:michsob,项目名称:Xrm,代码行数:10,代码来源:ContactService.cs


示例18: MessageServiceImpl

 /// <summary>
 /// 初始化一个<c>MessageServiceImpl</c>类型的实例。
 /// </summary>
 public MessageServiceImpl(IRepositoryContext context,
     IMessageRepository messageRepository,
     IContactRepository contactRepository,
     ISendMessageService sendMessageService)
     : base(context)
 {
     this.messageRepository = messageRepository;
     this.contactRepository = contactRepository;
     this.sendMessageService = sendMessageService;
 }
开发者ID:asd1355215911,项目名称:MessageManager,代码行数:13,代码来源:MessageServiceImpl.cs


示例19: ProductionController

 public ProductionController(IContactRepository contactRepository, IAddressRepository addressRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquirydetailsRepository, IEnquiryRepository enquiryRepository,IProjectRepository projectRepository,ITeamRepository teamRepository)
 {
     this.contactRepository = contactRepository;
     this.addressRepository = addressRepository;
     this.statusRepository = statusRepository;
     this.enquirydetailsRepository = enquirydetailsRepository;
     this.enquiryRepository = enquiryRepository;
     this.projectRepository = projectRepository;
     this.teamRepository = teamRepository;
 }
开发者ID:harlalkap,项目名称:BusinessFlow,代码行数:10,代码来源:ProductionController.cs


示例20: ProjectService

 static ProjectService()
 {
     ProjectService.unitOfWork = new UnitOfWork();
     ProjectService.projectRepository = 
         RepositoryFactory.GetRepository<IProjectRepository, 
         Project>(ProjectService.unitOfWork);
     ProjectService.contactRepository =
         RepositoryFactory.GetRepository<IContactRepository,
         Contact>(ProjectService.unitOfWork);
 }
开发者ID:pachinko,项目名称:NDDDCS,代码行数:10,代码来源:ProjectService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IContactService类代码示例发布时间:2022-05-24
下一篇:
C# IContact类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap