Skip to content
Permalink
Browse files

mark text_of_script as LazyLoad in NHibernate mapping

  • Loading branch information...
BlythMeister committed Sep 10, 2018
1 parent 972bf72 commit 61c8b96b421674fed174b0e44ac0833df2a24323
@@ -19,7 +19,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).Length(255);
Map(x => x.text_of_script).Length(255).LazyLoad();
Map(x => x.text_hash).Length(255);
Map(x => x.one_time_script);

@@ -19,7 +19,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomSqlType("mediumtext");
Map(x => x.text_of_script).CustomSqlType("mediumtext").LazyLoad();
Map(x => x.text_hash).Length(512);
Map(x => x.one_time_script);

@@ -18,7 +18,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Increment().UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomSqlType("text");
Map(x => x.text_of_script).CustomSqlType("text").LazyLoad();
Map(x => x.text_hash).Length(512);
Map(x => x.one_time_script);

@@ -19,7 +19,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomSqlType("TEXT");
Map(x => x.text_of_script).CustomSqlType("TEXT").LazyLoad();
Map(x => x.text_hash).Length(512);
Map(x => x.one_time_script);

@@ -19,7 +19,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("text");
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("text").LazyLoad();
Map(x => x.text_hash).Length(512);
Map(x => x.one_time_script);

@@ -19,7 +19,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("text");
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("text").LazyLoad();
Map(x => x.text_hash).Length(512);
Map(x => x.one_time_script);

@@ -19,7 +19,7 @@ public ScriptsRunMapping()
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
Map(x => x.version_id);
Map(x => x.script_name);
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("ntext");
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("ntext").LazyLoad();
Map(x => x.text_hash).Length(512);
Map(x => x.one_time_script);

0 comments on commit 61c8b96

Please sign in to comment.
You can’t perform that action at this time.