public SqlPackBuilder Plain(string sql) { _init = !_init ? true : throw new ApplicationException("이미 SqlPack의 형식이 정해진 상태입니다."); _resourceType = QueryResourceType.Plain; _plain = sql; return(this); }
public SqlPackBuilder File(string filename) { _init = !_init ? true : throw new ApplicationException("이미 SqlPack의 형식이 정해진 상태입니다."); _resourceType = QueryResourceType.File; _filename = filename; return(this); }
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); }