Gentle : framework di persistenza

Ho scoperto questo nuovo, almeno per me, framework di persistenza, e l'ho trovato subito molto semplice da usare e a differenza del famoso NHibernate non richiede file di configurazione per ogni classe ma è sufficiente inserire pochi attributi all'interno della classe stessa

es:
[TableName("Users")]
public class User
{
private int userId;
private string userName;

public User( int userId, string userName )
{
this.userId = userId;
this.userName = userName;
}

[TableColumn("UserId"), PrimaryKey]
public int Id
{
get{ return userId; }
set{ userId = value; }
}

[TableColumn(NotNull=true)]
public string Name
{
get{ return userName; }
set{ userName = value; }
}
}

e scrivere un semplice file xml per configurare Gentle.

Per scaricare il framework : Home
per cominciare : Getting Started
i primi esempi : Basic Example

posted @ lunedì 29 maggio 2006 17:42

Print

Comments on this entry:

# Re: Gentle : framework di persistenza

Left by mp.papo@libero.it (papo) at 29/05/2006 18:53
Gravatar
solo una nota: anche in NHibernate si può fare qualcosa di simile, basta usare le annotazioni (in gergo Java, attributi in .NET!) invece del file di mapping. mi pare che

non ricordo se è disponibile nella distribuzione di NHibernate o se nella collezione di add-in in NhibernateContrib, ma mi pare che sia in ques'ultima.

<a href="http://www.hibernate.org/hib_docs/nhibernate/html/mapping-attributes.html">documentazione</a><br>
<a href="http://blogs.netindonesia.net/ricardoalexander/archive/2006/03/13/8947.aspx">un esempio</a><br>
<p>ciao! <br>-papo-</p>

# Re: Gentle : framework di persistenza

Left by mp.papo@libero.it (papo) at 29/05/2006 18:55
Gravatar
scusa per il post orribile!

# Cymbalta.

Left by Cymbalta. at 11/01/2011 23:32
Gravatar
Cymbalta.

# re: Gentle : framework di persistenza

Left by custom papers at 09/06/2012 09:25
Gravatar
You may ask if that's good to get information: "how to do my essay "exclusivepapers.com" ". I state that is a natural stuff to use custom writing firms to gain your academic purposes.

# re: Gentle : framework di persistenza

Left by plagiarism checker at 29/07/2012 12:41
Gravatar
That's not good not to realize if your stuff is unique. I am always focuced on progress. Therefore, I use plagiarism checker to become sure that my paper is unique.

# re: Gentle : framework di persistenza

Left by resume writing at 27/05/2013 23:54
Gravatar
Whenever you have no idea which company to choose for buying resume and are in need of professional resume writing service, contact Prime Resume company. You can glance over resume writing samples as well as order resume from expert resume writers.

# re: Gentle : framework di persistenza

Left by plagiarism check at 23/06/2013 08:46
Gravatar
The biggest problem of modern society is plagiarized paper. As for me, I do not like plagiarism and use check for plagiarism always.

# re: Gentle : framework di persistenza

Left by make at 07/11/2013 06:00
Gravatar

# re: Gentle : framework di persistenza

Left by he at 13/11/2014 17:27
Gravatar
rapidly landscapes massive how to check your credit score major news huge credit report scores important partners 8941
Comments have been closed on this topic.
«luglio»
domlunmarmergiovensab
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910