I am using RepositoryPrimaryKey attribute as follows:
public class DummyEntity : RepositoryEntityBase
{
[RepositoryPrimaryKey]
public Guid DummyEntityId { get; set; }
...
It seems "RepositoryFactory.GetInstance<DummyEntity>()" doesn't work for Guid. It defaults to "int".
I'm forced to use RepositoryFactory.GetInstance<DummyEntity, Guid>()"
Is this a limitation?
Thanks
Ahsan
________________________________________
From: sharpre...@googlegroups.com <sharpre...@googlegroups.com> on behalf of ahsan.al...@gmail.com <ahsan.al...@gmail.com>
Sent: Wednesday, February 18, 2015 7:47 AM
To: sharpre...@googlegroups.com
Subject: [SharpRepository] RepositoryPrimaryKey attribute with Guid
Hi,
Is this a limitation?
Thanks
Ahsan
--
You received this message because you are subscribed to the Google Groups "SharpRepository" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharpreposito...@googlegroups.com.
To post to this group, send email to sharpre...@googlegroups.com.
Visit this group at http://groups.google.com/group/sharprepository.
To view this discussion on the web visit https://groups.google.com/d/msgid/sharprepository/4b3000f2-77b3-484f-856c-18e2d674a968%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.