Click here to Skip to main content
15,887,683 members
Everything / Repository

Repository

repository

Great Reads

by Victor Dashevsky
Processing the positioning information of visual objects detected by Pixy camera and received on Raspberry Pi via I2C, and using common design patterns in a C# program parsing robotics sensor data
by Daniele Fontani
Implement a private Wordpress reposiotory using Angular and PHP slim framework as backend
by Shaun C Curtis
Rethinking the Repository Pattern
by Sunny Makode
This is an introductory article about creating an Odata Rest API in collaboration with Entity Framework. We are also going to use Autofac as our IOC container. Also, Repository and Unit of Work pattern will be used for cleaner access of persistence model through our ORM (Entity Framework).

Latest Articles

by Divya Ulasala
Check out remote Git branch that does not exist on local clone
by Bert O Neill
How to incorporate repository pattern
by Shaun C Curtis
Rethinking the Repository Pattern
by Daniele Fontani
Implement a private Wordpress reposiotory using Angular and PHP slim framework as backend

All Articles

Sort by Title

Repository 

19 Dec 2022 by Shaun C Curtis
Rethinking the Repository Pattern
3 Apr 2019 by Mahsa Hassankashi
This is the simplest tutorial on AngularJS and Repository Pattern for developing professional MVC applications. It includes a source code about practical permission management project.
16 Nov 2016 by syed shanu
In this article, we will see in detail how to create ASP.NET Core with Repository pattern in the WEB API.
24 Apr 2017 by SlavaUtesinov
Implementation of "insert" repository with dynamic database table (re)creation, if it not exists. It is possible to specify which migrations will be used for that otherwise will be used default creation logic. Usage example - dynamic logging and archivation or manual table creation for some purposes
22 Nov 2014 by vedatg1980
In our project we are using-Entity Framework - Repository Pattern + Unit of Work Pattern together + We are using Devexpress controls.The related part of the code for initializing our grid is:UOW = new RepositoryObject.Core.UnitOfWork();repXtraGridAddXtraEditor = new...
16 Apr 2012 by Brett Hargreaves
Hi,Could somebody help me please, I'm not understanding the repository pattern very well!I have a model whereby I have a Person entity with a one-to-one link with a PersonProfile Entity.So I have my two entities:public class person{ public int PersonId {get;set;} public...
4 Jan 2023 by Bert O Neill
How to incorporate repository pattern
27 May 2021 by jaideepsinh
how to commit files into azure git repo using build pipeline. I am generating some files from my azure ci pipeline and I want to commit those files into the same repo which I used in my ci pipeline. What I have tried: I have added azure cli...
27 May 2021 by jaideepsinh
"git remote set-url origin https://username:gitpassword@repository url" git checkout trunk git add . git commit -m "test commit" git push -u origin trunk
11 Jan 2021 by Benktesh Sharma
How to create, modify and update Docker image from container
11 Nov 2013 by sathya88
A simple framework for data validation using data annotations at entity level.
29 Jun 2022 by Atul Joshi 2022
For an attribute which need to be validated, lets say for an entity we have country field as VO This country field needs to be validated to be alpha-3 code as per some business logic required by domain expert. ***We need to persist this country...
28 May 2014 by DGKumar
In wcf Interface and classes and Repository pattern Using Interface and Classes except names both are seems same.Has wcf created from Repository pattern?
28 May 2014 by Keith Barrow
Has wcf created from Repository pattern?No. Classes/interfaces are more of a Object oriented construct, in this case a VB.Net or C# language thing and is in more general use. Often patterns make use of Interfaces and class inheritance to work, but not specifically to the repository...
10 Sep 2015 by Naresh Kumar
Is it possible to implement Unit of Work with Generic Repository if my application is having multiple contexts and each context referring to different database. If So? Could you please provide an example.Any help will be highly appreciated.public class GenericRepository where...
21 Apr 2012 by Member 8357920
I have build my site using entity and repository pattern with ninject injection. My problem is my connections don't seem to get disposed. I have around 30 repositories (one for each table) and I get sql expiration timout preety quick. I can't use the regular using statement because the code...
3 Mar 2014 by Imran Khan Pathan
Hello Friends,I have one issue to access instance of service on static webmethod to call qjeruy ajax method. I have enitity code first approch andgeneric repository pattern implemented in the project.Following are the code structure.Repository Class:public partial class...
13 Mar 2017 by Sabyasachi Mukherjee
have watched Mosh Hamedani's course on EF as well as read articles on MSDN. I have also read a few discussions over this. But I cannot still understand it properly.I am trying to use Entity Framework with repository pattern in WPF. Now, everywhere I see people using repository pattern in...
15 Mar 2021 by huynbt209
I am having a Semester1 including StartDate1 and EndDate1. I want to create a new Semester2 and it must ensure EndDate1
14 Mar 2021 by OriginalGriff
What you are comparing isn't a pair of DateTime objects - it's (probably, we can;t see your code from here) a DateTime on the right hand side of the comparison, but the left hand side will be a collection of Semester objects. Try it: split your...
30 Nov 2018 by UA12
these are the errors. Quote: qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init qt.network.ssl: QSslSocket: cannot...
21 Apr 2018 by Wade Harvey
This article shows how to use Winforms, WPF and C# to create a File Explorer Clone with Tabs and an extremely fast parallel file search utility.
19 Sep 2013 by Ryanm1324
I am using the generic repository approach to entity framework code first. If I need to write a complex LINQ query, what is the best way to do it? I think the whole point to repository pattern is to access the DBContext from the repository and not directly in my code. Where should I create...
19 Sep 2013 by Bala Selvanayagam
It is not a good practice to write outside the generic repository pattern and you will be defeating the whole purpose of having the repository patternYou could customize the repository pattern for your special requirement and still have it under repository pattern and it is not recomanded to...
1 Jun 2020 by sam_roy
I am using a generic repository something like EFRepo which has a method public IEmerable GetAll( Expression> filter = null, Func, IOrderedQueryable> orderBy = null, ...
1 Jun 2020 by Richard Deeming
I'm not sure about "best practises" - there are many different ways to achieve the same thing, with varying degrees of complexity. What I tend to do is return a class which encapsulates the results: public class EntityList { public...
13 Nov 2020 by xhon
I'm using Git and I stored my remote repo on a SaaS. I renamed the project folder both on my local machine and in the page of my remote repository. Now I'm on Git bash and I checked out to master from the new directory by writing the following...
14 Jun 2020 by mohsen_3325
i have this entity framework code: repository.GetObjectQuery(Of COUNL1)().Where(Function(a) a.CDATE >= "2012/01/01" And a.CDATE
14 May 2019 by David_zeng
var data = from a in tablename.groupby(a=>a.cdate) .select (al => new datamodle{expr1=sum(al.first().taotalvj,cdate=al.first().cdate) });
24 Jun 2015 by pyler
I want to download some "*.c" and "*.java" files onto my dektop from a server I connected to via ssh. CVS is the only currently supported version control system on the server and I'm not very familiar with it.So how do I checkout files/folders from the server onto my desktop using cvs?
24 Jun 2015 by Albert Holguin
Google provided an answer quickly.http://www.cs.columbia.edu/crf/crf-guide/resources/network/cvs-ssh.html[^]If there is something there you don't understand, ask, but please try to find online resources first before asking questions.
16 Sep 2019 by Simphiwe_Magubane
When the user chooses an item to purchase they should be able to specify the quantity and the total is specified, the problem is that the quantity does not increase and I don't seem to understand what can be the cause of that. What I have tried: I have tried fixing it because I thought it...
2 Feb 2023 by Divya Ulasala
Check out remote Git branch that does not exist on local clone
25 Jul 2017 by hkholakiya
How to create architecture with Generic repository in Asp.net mvc What I have tried: Wanted to created generic repository for my MVC project
25 Jul 2017 by Member 13206142
If you want to create code first approach then follow below code to create generic repository pattern [Table("Categories")] public class Category { [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity), Key()] public int Id { get; set; } [Required] ...
13 Feb 2019 by Gerry Schmitz
1) Create a stored procedure of your "SQL Query" 2) Add a method to your "repository" that calls said procedure with a "table name" parameter and return the result as a string scalar.
13 Feb 2019 by K K Shah
I want to get a size of Entity Class - which is fetched from database using Repository. How to do so using Vb.net ? Below Line is calling GetEntity Method which is in my InwardService. Dim Inward As ARI.PurchaseTranEntity.InwardOutward = _InwardService.GetEntity(id) So what i want to get the...
29 Jul 2015 by Member 11717321
Could anyone give some advice, for the best possible way to implement this solution. My program does do a basic insert, but trying to get Items added to the Job Card is my big problem.ThanksController: IJobCardBusiness iUser; ApplicationDbContext _context =...
18 Nov 2018 by kubibay
We are using repository pattern in our mvc project. But I'm unable to implement service in quartz jobs. Here is the code; [DisallowConcurrentExecution] public class DeleteContentsJob : IJob { private readonly IAttachmentService attachmentService; public...
25 Aug 2019 by Member 11380736
I'm trying to create a dynamic architecture for a Audio/Video player application. I want to be able to change the type of playlist and type of repository from inside the ioc container. This should be injected in constructors around the application: IPlaylist playlist,...
8 Nov 2018 by Member 13947747
I am developing an application with ASP.NET MVC using Visual Studio 2017 applying the Code First approach. I have three classes (tables) in the model and I am trying to create a class that simulates the BD. I'm trying to store data in memory without using db. I don't now how to add new item?...
8 Nov 2018 by Vincent Maverick Durano
You may try to look at Effort to test your app without a real database. Here's an example: Using an In Memory Database as a Test Double with Entity Framework - Steve Fenton[^]
11 Nov 2013 by srihari1904
Hi to all,I have Gridview & in 1st Column have Repository LookupEdit. If I select one item on Repository LookupEdit again I don't want to choose same Item. How to set this condition on the Repository LookupEdit ?
14 Mar 2021 by Arun Endapally
Setting different Git Config at folder level for work and personal use.
28 Feb 2012 by AhmedOsamaMoh
Dear sirs now i have two Repositories , one in my PC and other is in my USB flash , now how i sync between them say i have edit the PC one and i commit it and now it became vers. 6 but the USB is still at ver. 5 , i want to transfer only the changes done after ver. 5 , the easy way that...
28 Feb 2012 by Graham Breach
Use the "Hg synchronize" menu option, then from the PC version you can set the remote repository to your flash drive and push the updated version. Then you must do an "update" from the flash drive to get all the same files checked out.You should be able to do it the other way around too -...
1 Jul 2017 by Morny
Hi I’ve come to the conclusion that a C# MVC 5 project (using Entity framework, code first and migrations) I’m working on has grown too big to fit the “out of the template” structure. I’m trying to build a site where the public part at the site is placed in the “root” or where a site build on...
1 Jul 2017 by RickZeeland
These seem like hands-on articles on the subject: An Absolute Beginner's Tutorial on Dependency Inversion Principle, Inversion of Control and Dependency Injection[^] Inversion of Control, Dependency Injection and Service Locator in C# – CsharpStar[^] Inversion of Control and Dependency...
20 Sep 2015 by Aaronman7155
I need to Update a record in my Generic Repository Application..... Using Code first.
8 Jun 2018 by bernova
I want to implement Save Operation(Insert/Update) as follow: Emp n = new Emp(); n.Srl=1; n.Name = "Mathew"; n.Save(); I should pass entity as the parameter to save Function and it's run correctly but really Ugly!!!... example: n.Save(n) Model Class : public class Emp...
4 Jan 2022 by jaideepsinh
I have on-premise GitLab repository so i have configured vpn to access this repo. Now i want to import my this repository to Azure Git repository. I have enough credential gitlab user name and personal access token but unable to import because...
2 Oct 2019 by Christopher Fernandes
I currently use Visual SVN for managing my project in visual studio 2012. I have around 8 repos in the server. Revision history of the project range from 7 to 72. I just recently backed up the working copy of each project on my external hard drive. My project server for some reason wont boot up...
22 May 2013 by Member 2870640
I have many to many relationship between doctor and clinic entities and also i am using unit of work generic Repository pattern. When i try to insert new doctor record i need to select multiple or single existing clinics. How can i insert doctor record with clinic reference and without...
11 Mar 2014 by mbarbac
Implementing the Repository and Unit of Work Patterns dynamically using Kerosene ORM
17 Mar 2015 by Akhil Mittal
How to create MVC application and perform CRUD operations using EntityFramework
17 Mar 2015 by Akhil Mittal
Unit of Work Pattern and Repository Pattern, and how to perform CRUD operations in an MVC application.
23 Jun 2020 by m.bleimuth
i am searching the web now for a while without real success. Lets assume following simple model, which i get from a webservice. public class A { public int Id { get; set; } public ObservableCollection Bs { get; set; } public A () {...
23 Aug 2012 by ♥…ЯҠ…♥
I want to merge a file from one branch to another branch in clearcasefor example from Offshore branch to DEV branch.I want to merge the file with its modification time as it is.If the modification date of a file(example.asp) is 12-02-2011, after merging the file in DEV branch, the...
20 Mar 2018 by saifullahiit
I'm Trying to update entry using EF 6.0, and generic repository. here is my base class code: public virtual void Edit(T entity) { _entities.Entry(entity).State = EntityState.Modified; _entities.SaveChanges(); } public virtual T GetById(int id) { ...
15 Mar 2021 by Arun Endapally
How to migrate your old repositories in TFVC to Git with full history
17 May 2015 by PrabalMI
I am having problems saving data when many to many relation is involved. I am using Repository pattern in Entity Framework Code First approach.Sample code is as follows:public partial class Employee : BaseEntity { private List _roles; [DataMember] ...
19 Nov 2015 by JagadheeshAP
Hi Everyone, I am very new to MVC-4..Previously I worked as a software developer in ASP.Net...Can anyone tell me how to learn MVC-4 Professionally...And also I need to know why we are using model,datamodel,repository.... Thanks in advance
19 Nov 2015 by F-ES Sitecore
You're not going to learn such a complicated language from a "Quick Answer" on a forum. Buy a book on MVC and go through it. Wrox do some comprehensive books, but there are others too.
19 Nov 2015 by Krunal Rohit
An addition to what F-ES Sitecore (wondering the name :laugh:) has said, refer the ASP.NET MVC[^] site, follow the tutorials. Or maybe the Google[^] would help you.-KR
20 May 2014 by Member 10830245
interface IWard { void Add(Ward w); void Update(Ward w); void Delete(Ward w); List GetAll(); Ward GetById(int id); void Save(); //List SelectListItem(); // public IEnumerable Albums { get; set;...
14 Jun 2019 by stally7074
i am looking forward to use google source code repository. and i want help for that.i searched for its tutorials on youtube but i found nothing. What I have tried: i searched for tutorials on youtube
14 Jun 2019 by OriginalGriff
Forget Youtube tutorials: they are nearly all a waste of time and effort. Mostly produced by people who can't teach, let alone create a video; they feature people who know little more than the person watching it... If you want info on Google products, start with Google: Google Cloud Source...
28 Oct 2012 by Member 3212080
Hi,I am implementing Repository Pattern in one of my project based on ASP.NET MVC4 and N-Tier Architecture. I am little confused as how to implement Custom Membership with Repository Pattern. Here are how I have implemented my classes so far. For posting purpose all ...
6 Sep 2016 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
8 Sep 2016 by Dave Kreskowiak
Ever heard of Google, or a any search engine for that matter?You can find all this stuff yourself quite easily.
27 Apr 2014 by Phani Kumar Simhadri
Problem – When I try to configure network file share as remote repository, I was unable to push and pull the changes to and from remote and local repositories. I am only managed to clone the repository from remote to local. Whenever I does push or pull, it shows the following error message...
8 Dec 2019 by Sunny Makode
This is an introductory article about creating an Odata Rest API in collaboration with Entity Framework. We are also going to use Autofac as our IOC container. Also, Repository and Unit of Work pattern will be used for cleaner access of persistence model through our ORM (Entity Framework).
22 Jan 2008 by parallelcoder
Describes how to use plastic from the command line
28 Oct 2014 by JOTHI KUMAR Member 10918227
hi to all, Here i want to populate Country and Automatically Load State and load city .Kindly help me for this then im using mvc 5 Repository pattern.Where to write that code in repository or controller. Because im new for mvc.
28 Oct 2014 by Suraj Sahoo | Coding Passion
Anticipating that you know the code to be written, I am writing you the flow and steps to follow in Repository pattern.First, Always try to add the context code i.e. the database operations in the Service or Repository whichever you have. Context operations should not be added to the...
28 Oct 2014 by King Fisher
This May help youCascading Dropdown List With MVC, LINQ to SQL and AJAX[^]Edit:http://www.dotnet-tricks.com/Tutorial/mvc/HL53191212-Custom-Validation-for-Cascading-Dropdownlist-in-MVC-Razor.html[^]
8 Jan 2021 by xhon
I created a new project on my dev.Azure.com account, linked my solution to it, and opened it with Visual Studio. My Visual Studio solution is inside the correct path, the .git and .vs folders are there and I can see all the files on Visual...
25 Dec 2017 by Onur ERYILMAZ
Hi, I want to ask a few questions about EF and repository design pattern implementation. I'm very new to EF and I want to learn more about that. I already have a database and tables inside of it. So, I don't want to entity frameworks re-generate this tables.(So I have to use DB First approach...
3 Feb 2018 by Onur ERYILMAZ
Hi; I need to change an already developed desktop application.(Application developed by using winforms) The application have already designed UI's with seperate UserControls(ex. PriceOfferRequestUserControl, OrderUserControl etc.), database tables and models. What I want to do is implementing...
3 Feb 2018 by fastal
OK manifesto here!!! Implementing MVP into an existing 1-layer app app is a rewrite. I wouldn't recommend that unless you have no backlog, and lots of testers for the app. Otherwise, polish off your resume, unless your boss is expecting a re-write and all the delays and retesting that go with...
2 Dec 2012 by Member 8539647
I've already formulated my problem in another site but I'm asking here as well since I really like to receive a response regarding my questions.http://stackoverflow.com/questions/13672775/repository-and-unit-of-work-usage-in-web-shop-project[^]I'm creating a web shop using MVC4 razor...
9 May 2012 by Mastersev
Is creating a Repository pattern implementation on top of Linq to Sql a good design for a medium size public faced web application?The app only deals with Sql sever backend and it requires rapid developmentI really like LINQ2SQL since it's a neat DAL. I thought of EF but it's too much...
9 May 2012 by R. Giskard Reventlov
You might find this[^] useful.Hard to say if you are correct or not without knowing what the exact requirement is but I can't see why you shouldn't.
14 Mar 2017 by Sabyasachi Mukherjee
I am using Entity Framework 6 in WPF. I have already created a Repository which returns list of entities to the Viewmodel. Since I need to bind these lists to the DataGrid, I have converted these to ObservableCollection. It needs to be done so that the change tracker of EF6 can detect the...
14 Mar 2017 by Graeme_Grant
Google Search: wpf c# mvvm entity framework binding - Google Search[^] has a number of links that can answer your question regarding the DataGrid EF binding:* Tutorial for a Basic WPF – MVVM Project Using Entity Framework - Code Project[^] * Windows Entity Framework MVVM Walk Through 1...
7 Dec 2018 by kubibay
We have an MVC project which is written in c#. We are using entity framework to connect with sql db. I use repository pattern with service implementation in our project. Manual db updates do not reflect to get queries of repository. How can I force ef get latest data? private readonly...
7 Dec 2018 by Richard Deeming
It sounds like you're using a single DbContext instance across the entire application. Once an entity has been loaded by a DbContext instance, it will be cached for the lifetime of that instance. Any attempt to read that entity from that instance will return the cached value, ignoring any...
24 Feb 2015 by Biswabid Rath
I want to reuse an existing project code. I have all the POCO classes(replica of tables) available with me from the old project which is attached to DBCOntext also. However in my new project my DB structure is different. I am planing to replace the old POCO classes with new ones with same...
24 Feb 2015 by Dave Kreskowiak
OK. Weird. You do realize you won't be able to write anything back to the database, correct?If you had, in your original solution, all of the EF code in a seperate project(s), completely seperate from the application code, you wouldn't have to recreate everything in your new solution. You...
28 Jan 2013 by Allgaeuer
Hello everyone,i got the problem, that i have to search for a file of a specific type( *.xxx ) within a massive 10 year wide svn history. I am not very familiar with the workings of svn. For the beginning, it would be enough to search over all repositories within the current state, and not...
25 Oct 2022 by ♥…ЯҠ…♥
Hi All,I am using Visual studio 2010 ultimate, now I want to add AnkhSVN to visual studio for that I downloaded the same from internet and installed.Then only I noticed I cant find Source control option in Tools --> options menu.Only 4 options are listed below that1) General2)...
11 Nov 2013 by ♥…ЯҠ…♥
Hi All, Finally I got it, Tools Menu--> OptionsIn that wizard below there is one checkbox called "Show all settings", checked that optionNow all the options are listed including "Source control" options.Now I am able to change the source control in visual studio.Regards,RK
11 Nov 2013 by Albert Holguin
In case you don't happen to know this (maybe you do, maybe you don't)...There's really no need to use SVN within VisualStudio... it doesn't buy you anything and you can easily use it outside of the IDE. The IDE keeps track of when the files are updated outside of it and will ask you if...