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


C# IContactRepository类代码示例

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


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


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