{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/688","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/688/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/688/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/688","id":113210890,"number":688,"title":"Add Clone Action For Entity","user":{"login":"saeedallahyari","id":13549775,"avatar_url":"https://avatars.githubusercontent.com/u/13549775?v=3","gravatar_id":"","url":"https://api.github.com/users/saeedallahyari","html_url":"https://github.com/saeedallahyari","followers_url":"https://api.github.com/users/saeedallahyari/followers","following_url":"https://api.github.com/users/saeedallahyari/following{/other_user}","gists_url":"https://api.github.com/users/saeedallahyari/gists{/gist_id}","starred_url":"https://api.github.com/users/saeedallahyari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeedallahyari/subscriptions","organizations_url":"https://api.github.com/users/saeedallahyari/orgs","repos_url":"https://api.github.com/users/saeedallahyari/repos","events_url":"https://api.github.com/users/saeedallahyari/events{/privacy}","received_events_url":"https://api.github.com/users/saeedallahyari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-25T06:57:42Z","updated_at":"2015-10-25T13:35:10Z","closed_at":null,"body":"Hi Dear.\r\nKindly.\r\nWould You Please Add Clone Method For Entity In RepositoryBase.\r\nI Think This Method Is Useful.\r\n\r\nThanks.\r\nBest Regards.\r\n"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/150923596","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/688#issuecomment-150923596","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/688","id":150923596,"user":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T13:35:10Z","updated_at":"2015-10-25T13:35:10Z","body":"Hi,\r\n\r\nThanks for your suggestion. Here, my comments:\r\n\r\nI'm asking these to understand your needs: What should it Clone? Should it clone also relations (in a 1 to N relation) or just table fields? Should it save cloned entity to database at the same time?\r\n\r\nFor me; this is not repository's responsibility. I don't want to add it to repository base. At most, one extension method can be written for IRepository interface.\r\n\r\nBut; cloning an entity may not be easy (not just entity, cloning a regular object can be hard). An entity may have relations and cloning an entity can be different for different entities based on your needs.\r\n\r\nThanks."}}