Permalink
Browse files

Merge pull request #338 from BlythMeister/LazyLoad

Lazy load Script text
  • Loading branch information...
BiggerNoise committed Sep 12, 2018
2 parents 4fb8c69 + 61c8b96 commit b57291bc27400db63f4c50e177a2edc8ca7fb516
@@ -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 b57291b

Please sign in to comment.