New Posts New Posts RSS Feed: IIdGenerator implementation
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

IIdGenerator implementation

 Post Reply Post Reply
Author
Sakar SR View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Jul-2010
Location: India
Posts: 39
Post Options Post Options   Quote Sakar SR Quote  Post ReplyReply Direct Link To This Post Topic: IIdGenerator implementation
    Posted: 25-Feb-2012 at 1:38pm
while IIdGenerator implementation the following error is thrown.

Code:

 public static SysUser Create(EntityManager pManager)
        {
            SysUser aSysUser = new SysUser();

            // if this object type requires a unique id and you have implemented
            // the IIdGenerator interface implement the following line

            pManager.GenerateId(aSysUser, SysUser.PropertyMetadata.RecID);

            // Add custom code here

            aSysUser.EntityAspect.AddToManager();
            return aSysUser;
        }

Error:

Object referance not set to an instance of an object

My data base has an tabel for NextId, with on record for GLOBAL

and i place the IIdGenerator class in my BOL.


Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 27-Feb-2012 at 1:51pm
Hi Sakar,
 
Can you provide the code for your IidGenerator?
 
Silvio.
Back to Top
Sakar SR View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Jul-2010
Location: India
Posts: 39
Post Options Post Options   Quote Sakar SR Quote  Post ReplyReply Direct Link To This Post Posted: 28-Feb-2012 at 7:53am
Hi sbelini,

thank you for your concern. the problem was not on Iidgenerator. i fixed it .
it was on the other function i called in my program.

Learning  Ideablade is Interesting . Ya! it is a great technology you guys have build.

After learning little more i made up my mind to buy this wonderful product.

Have a nice day.



Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down