예제 #1
0
 public SqlPackBuilder Plain(string sql)
 {
     _init         = !_init ? true : throw new ApplicationException("이미 SqlPack의 형식이 정해진 상태입니다.");
     _resourceType = QueryResourceType.Plain;
     _plain        = sql;
     return(this);
 }
예제 #2
0
 public SqlPackBuilder File(string filename)
 {
     _init         = !_init ? true : throw new ApplicationException("이미 SqlPack의 형식이 정해진 상태입니다.");
     _resourceType = QueryResourceType.File;
     _filename     = filename;
     return(this);
 }
예제 #3
0
 public SqlPackBuilder Embedded(string filename, Assembly assembly = null, string defaultNamespace = null)
 {
     _init             = !_init ? true : throw new ApplicationException("이미 SqlPack의 형식이 정해진 상태입니다.");
     _resourceType     = QueryResourceType.Embedded;
     _filename         = filename;
     _assembly         = assembly ?? Assembly.GetCallingAssembly();
     _defaultNamespace = defaultNamespace;
     return(this);
 }