Remove unnecessary Disposes

Remove Old comments
This commit is contained in:
Rich 2012-06-01 17:04:37 +00:00
parent f5378a0f27
commit af5f3056d9

View File

@ -1543,9 +1543,7 @@ namespace <%=_nameSpace%>
{<%=DebugLine("20070427.1")%> {<%=DebugLine("20070427.1")%>
<%=_className%> tmp = <%=_className%>.New(<%=FormatColumns("{local}",makeList,", ","")%>); <%=_className%> tmp = <%=_className%>.New(<%=FormatColumns("{local}",makeList,", ","")%>);
<%=FormatColumns(dicCheck,makeList3,"\r\n","\t\t\t")%> <%=FormatColumns(dicCheck,makeList3,"\r\n","\t\t\t")%>
<%=_className%> tmp2 = tmp.Save(); return tmp.Save();
tmp.Dispose();
return tmp2;
}<% }<%
} }
string sExtra1= ""; string sExtra1= "";
@ -1739,11 +1737,7 @@ namespace <%=_nameSpace%>
} }
%> %>
if (tmp.IsSavable) if (tmp.IsSavable)
{ tmp = tmp.Save();
<%=_className%> tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
else else
{ {
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules(); Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@ -4548,7 +4542,7 @@ private void vlnDataPortalFetch(string sPrefix,IColumns cols,string sql,bool get
vlnProperty(RelObjType( column ) + (bInfo?"Info":"") ,sMember vlnProperty(RelObjType( column ) + (bInfo?"Info":"") ,sMember
,sProp,";"+DebugLine("20070501.4"),"",bReadOnly,column.IsInPrimaryKey,false,null,sCheck,sCheck2,sCheck3); ,sProp,";"+DebugLine("20070501.4"),"",bReadOnly,column.IsInPrimaryKey,false,null,sCheck,sCheck2,sCheck3);
//if (sProp.StartsWith("My"))_refreshMine += string.Format("\t\t\t{0} = null;\r\n",sMember); //if (sProp.StartsWith("My"))_refreshMine += string.Format("\t\t\t{0} = null;\r\n",sMember);
if (sProp.StartsWith("My"))AddRefreshMine(sMember); //if (sProp.StartsWith("My"))AddRefreshMine(sMember);
} }
} }
private void AddRefreshMine(string sMember) private void AddRefreshMine(string sMember)
@ -4679,7 +4673,7 @@ private void vlnDataPortalFetch(string sPrefix,IColumns cols,string sql,bool get
string sBy = FKBy(FK); string sBy = FKBy(FK);
string sProp = "My" + sClass + sAlias; string sProp = "My" + sClass + sAlias;
//_refreshMine += string.Format("\t\t\t{0} = null;// Reset related value\r\n",sMember); //_refreshMine += string.Format("\t\t\t{0} = null;// Reset related value\r\n",sMember);
AddRefreshMine(sMember); //AddRefreshMine(sMember);
%> %>
private <%=sClass%>Info <%=sMember%> = null; private <%=sClass%>Info <%=sMember%> = null;
[TypeConverter(typeof(<%=sClass%>InfoConverter))] [TypeConverter(typeof(<%=sClass%>InfoConverter))]