Hot-Key for ORM support class insert..

Posts   
 
    
asowles
User
Posts: 46
Joined: 23-Apr-2008
# Posted on: 15-Mar-2009 16:15:21   

I had put away LLBLGen for a while because the project I was working on was tabled for a bit. I'm back at it now and I could swear that I read some time ago there was a way to "automatically" insert the ORM support classes in your code file and now I can't find it. Am I losing my mind or was there a hot-key or something to do this?

Thanks,

Allen

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Mar-2009 21:19:29   

"automatically" insert the ORM support classes in your code

What you mean? Adding the assembly references to your project? Adding the "using" statements to the top of the file ? (code snippets)

David Elizondo | LLBLGen Support Team
asowles
User
Posts: 46
Joined: 23-Apr-2008
# Posted on: 19-Mar-2009 00:23:25   

Yes, that is it. Maybe it is different in C#, but I thought when I was working in VB that I could do a snippet or something that inserted them or some hot-key, but now I can't remember. I'm probably losing my mind simple_smile . Sorry for the trouble.

simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 19-Mar-2009 05:42:54   

asowles wrote:

Yes, that is it. Maybe it is different in C#, but I thought when I was working in VB that I could do a snippet or something that inserted them or some hot-key, but now I can't remember. I'm probably losing my mind simple_smile . Sorry for the trouble.

Get Resharper!

Type in your entity name or whatever and it will prompt you to include the relevent using statement - you just press Alt-Enter. (Or you can create your own Resharper snippets / class templates etc.)

Cheers Simon

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 19-Mar-2009 06:15:35   

Also starting from VS 2005, you can write any type and right click on it and select "Resolve", and the correct using statement will be added to the code file, provided that the correct assembly is being referenced.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 19-Mar-2009 06:21:16   

Or... If you want to add "Import" statements, you can use code snippets. This is where they are located. And this is how to manage/add them (msdn documentation).

David Elizondo | LLBLGen Support Team