Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created February 29, 2012 14:06
Show Gist options
  • Save jfromaniello/1941105 to your computer and use it in GitHub Desktop.
Save jfromaniello/1941105 to your computer and use it in GitHub Desktop.
private string miPropiedad; //aquí guardaremos el valor encriptado
public string MiPropiedad
{
set { this.miPropiedad= encriptar(value) ; }
get { return desencriptar(this.miPropiedad); }
}
En el mapeo:
<property name="MiPropiedad"
access="field.camelcase" //< aca le decimos a nhibernate que el valor lo tiene que poner y tomar desde el field, no del proprety.
column="FOO_1"
type="string" length="50" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment